哈工大c语言教学ppt6 循环控制结构.pptVIP

  • 1
  • 0
  • 约8.8千字
  • 约 75页
  • 2021-01-27 发布于河北
  • 举报
n ??? 10 Please enter n:10↙ n = 10 Please enter n: -10↙ Program is over! 【例6.14】 演示break与continue -10 #include stdio.h main() { int i, n; for (i=1; i=5; i++) { printf(Please enter n:); scanf(%d, n); if (n 0) break; printf(n = %d\n, n); } printf(Program is over!\n); } n ??? 10 Please enter n:10↙ n = 10 Please enter n: -10↙ Please enter n:20↙ n = 20 Please enter n: -20↙ Please enter n:30↙ n = 30 Program is over! 【例6.14】 演示break与continue -10 20 -20 30 #include stdio.h main() { int i, n; for (i=1; i=5; i++) { printf(Please enter n:); scanf(%d, n); if (n 0)

文档评论(0)

1亿VIP精品文档

相关文档