C语言 这式子该怎么写 includeincludevoid main(){float a=0,x=0;double y=0;scanf(\"%f%f\",&a,&x);y=pow(a,5)+sin(a*x)+log(a+x)+exp(a*x);printf(\"%f\\n\",y);}
c语言基础 includedefine N 50voidquestion1(){int num[N];50个数字的数组int i=0;int flag=0;for;i;i+){scanf(\"%d\",&num[i]);if(num[i]%2。0)num[i]=-1;}for(i=0;i;i+){if(num[i]。1){printf(\"%d\",num[i]);flag+;if(flag%10=0)printf(\"\\n\");}}}voidquestion2(){int num;printf(\"a number:\");scanf(\"%d\",&num);if(num%5=0&num%7=0)printf(\"yes\\n\");elseprintf(\"no\\n\");}voidquestion3(){int c;printf(\"input:\");scanf(\"%d\",&c);if((c>;=65&c)|(c>;=97&c))printf(\"letter:%c ascii:%d\\n\",c,c);elseif(c>;=0&c)printf(\"a number:%d\\n\",c);elseprintf(\"error\\n\");}voidquestion4(){int a,b,c;printf(\"input a、b、c:\\n\");scanf(\"%d%d%d\",&a,&b,&c);printf(\"min number is:%d\\n\",a<;b?(a):(b)?b:c);}voidquestion5(){int num[10];int i=0;int sum=0;int flag=0;for;i;i+){scanf(\"%d\",&num[i]);if(num[i]){sum+num[i];flag+;}}printf(\"sum:%d number:%d\\n\",sum,flag);}int main(void){question1();question2();question3();question4();question5();return 0;}应该差不多
简单的C语言求解 includeint main(){int a,b,c,sum;scanf(\"%d%d%d\",&a,&b,&c);sum=a+b+c;printf(\"%d%.3lf\\n\",sum,sum*1.0/3);return 0;}includeincludedefine PI acos(-1.0)int main(){double a,b,x;scanf(\"%lf%lf%lf\",&a,&b,&x);printf(\"%lf\\n\",0.5*a*b*sin(x/180*PI));return 0;}