题目内容

读程序,写出运行结果。#include #define N 3main(){ int i;int x1=1,x2=2;printf("\n");for(i=1;i<=N;i++){ printf("%4d%4d",x1,x2);if(i%2==0)printf("\n");x1=x1+x2;x2=x2+x1;}}运行结果为:_________________

查看答案
更多问题

读程序,写出运行结果。#include main(){ int i,a[7];for (i=0; i<7; i++)a[i]=i;for (i=6; i>=0 ; i--)printf("%d ",a[i]);}运行结果为___________________

读程序,写出运行结果。void main(){int x=1,y=2;if(x++%2==0){y++;}else{y--;}printf("x=%d,y=%d\n",x,y);}运行结果为:_________________

读程序,写出运行结果。intx=1;inty=2;if(x%2==0){y++;}else{y--;}printf("y=%d",y);运行结果为:_________________

读程序,写出运行结果。 #include < stdio .h > main ( ) { float c=3.0 , d=4.0;if ( c>d )c=5.0;elseif ( c==d )c=6.0;elsec=7.0; printf ( “%.1f\n”,c ) ; } 运行结果为:_________________

答案查题题库