2013年下半年C上机模拟题.docVIP

  • 60
  • 0
  • 约1.09万字
  • 约 13页
  • 2015-07-26 发布于山西
  • 举报
2013年下半年C上机模拟题,2015年一建市政模拟题,2015年中考英语模拟题,2015年包头中考模拟题,2015年三支一扶模拟题,2015年司法考试模拟题,2015年高考语文模拟题,2015年中考语文模拟题,2015年英语高考模拟题,2014年行测模拟题

模拟试卷一 改错题 输出大于100的前10个素数,如101,103,107,……等。 #include stdio.h void main() { int i,j,flag,n; n=0; i=101; while(n=10) /*$ERROR1$*/ n10 { flag=0; for(j=2;ji;j++) if(i/j==0) /*$ERROR2$*/ i%j==0 { flag=1; break; } if(flag==1) /*$ERROR3$*/ flag==0 { n=n+1; printf(%d\n,i); } i=i+2; } } 程序填空题 输出以下图形(数字之间没有和,每行第一个数字前也没有空格)。 0001000 0011100 0111110 1111111 0111110 0011100 0001000 #include stdio.h #include math.h void main() { int i,j; for(i=-3;i=___;i++) /*$BLANK1$*/ 3 { j=1; while(j=abs(i)) { printf(0);j++; } j=1; wh

文档评论(0)

1亿VIP精品文档

相关文档