- 26
- 0
- 约1.82万字
- 约 19页
- 2021-11-26 发布于浙江
- 举报
*该程序功能:对x=1 ,2,。。。。。,10,f(x)=x*x*-5*x+sin(x)的最大值。*/
#include stdio.h
#include math.h
#define f(x) x*x-5*x+sin(x)
void main()
{ int x; float max;
____ max=f(1);____
for(x=2;x=10;x++)
___if( maxf(x)) max=f(x);___
printf(%f\n,max);
}
练习二:
/*该程序功能:输入三个整数,按由小到大的顺序输出这三个
原创力文档

文档评论(0)