题目内容

#include int fun(int a, int b){if(a>b) return a-b;else return b-a;}int main( ){int m=5, n=3, result;result = fun(n, m);printf("%d", result);return 0;}该程序的运行结果是_____。

查看答案
更多问题

#includeint fun(int a,int b){if(a>b) return a;else return b;}int main(){int x=15,y=8,r;r=fun(x,y);printf("r=%d",r);return 0;}运行结果为:

#includeint main(){float c=3.0,d=4.0;if (c>d) c=5.0;elseif(c==d) c=6.0;else c=7.0;printf("%.1f",c);return 0;}运行结果为:

#includeint main ( ){int arr[10],i,k=0;for(i=0;i<10;i++)arr[i]=i;for(i=1;i<=4;i++){k+=arr[i]+i;printf("%5d",k);}return 0;}该程序的运行结果是___________________。

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

答案查题题库