x的值是从1到10的整数,f(x)=x*x-5*x+sin(x),用C语言编程求出每一个f(x)并输出最大值

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/01 08:48:08

x的值是从1到10的整数,f(x)=x*x-5*x+sin(x),用C语言编程求出每一个f(x)并输出最大值

#include#includeusing namespace std;void main(){ double a[10]; int i; for(i=1;i