题目内容

#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);}运行结果为:

#include f(int b[],int n){int i,r;r=1;for (i=0;i<=n;i++)r=r*b[i];return (r);}int main(){int x,a[]={1,2,3,4,5,6,7,8,9};x=f(a,3);printf(“%d\n”,x);return 0;}运行结果为:

#include void func(int x) {x=10;printf(“%d, ”,x);}int main( ){ int x=20;func(x);printf(“%d”, x);return 0;}运行结果为:

答案查题题库