#include <stdio.h> int main(){ double x; double f; if (scanf("%lf",&x)!=EOF){ if (x==10.0){f=0.1;} else{f=x;} printf("f(%.1f) = %.1f",x,f); }else{ printf("intput x wrong"); } return 0; }
c语言编程练习题:7-76 计算分段函数[3]
作者:yunjinqi
类别:编程
日期:2023-05-30 15:58:30
阅读:579 次
消耗积分:0 分
版权所有,转载本站文章请注明出处:云子量化, https://www.yunjinqi.top/article/201
最新文章
系统当前共有 442 篇文章