题目内容

#include int main(){ float a,b,c,t;a=3;b=7;c=1;if(a>b){t=a;a=b;b=t;}if(a>c){t=a;a=c;c=t;}if(b>c){t=b;b=c;c=t;}printf("%5.2f,%5.2f,%5.2f",a,b,c);return 0;}运行结果为:

查看答案
更多问题

#include int main(){ int num=0;while(num<=2){ num++;printf("%d\n",num);}return 0;}运行结果为:

#include int main(){ int num,c;scanf("%d",&num);do {c=num%10; printf("%d ",c); }while((num/=10)>0); num=0printf("\n");return 0;}从键盘输入23,则运行结果为:

#include int main(){ int y=9;for(;y>0;y- -)if(y%3==0){ printf(%d”,- -y);}return 0;}运行结果为:

#include int main(){ float fun(float x[]);float ave,a[3]={4.5,2,4};ave=fun(a);printf(“ave=%7.2f”,ave);return 0;}float fun(float x[]){int j;float aver=1;for (j=0;j<3;j++)aver=x[j]*aver;return(aver);}运行结果为:

答案查题题库