达标篇31 46.pptVIP

  • 2
  • 0
  • 约6.05万字
  • 约 153页
  • 2017-06-28 发布于上海
  • 举报
达标篇31 46

第44套填空题 #include stdio.h int fun(int x) { int n, s1, s2, s3, t; /**********found**********/ n=__1__; t=100; /**********found**********/ while(t=__2__) { s1=t%10; s2=(t/10)%10; s3=t/100; if(s1+s2+s3==15) { printf(%d ,t); n++; } /**********found**********/ __3__; } return n; } main() { int x=-1; while(x999||x0) { printf(Please input(0x=999): ); scanf(%d,x); } printf(\nThe result is: %d\n,fun(x)); } #include stdio.h int fun(int x) { int n, s1, s2, s3, t; /**********found**********/ n=0; t=100; /**********found**********/ while(t=x) { s

文档评论(0)

1亿VIP精品文档

相关文档