(5.4.3)--3.3-switch语句程序设计基础.pptVIP

  • 1
  • 0
  • 约1.69千字
  • 约 21页
  • 2023-11-30 发布于陕西
  • 举报
;C;;C;;#includestdio.h int main() { int a=0; scanf(%d,a); switch(a) { case 1: printf(A\n);break; case 2: printf(B\n);break; case 3: printf(C\n);break; default: printf(D\n);break; } return 0; };switch语句概念;for语句概念;;#includestdio.h int main() { int score, temp; printf(Input score:); scanf(%d,score); if (score0 || score100) printf(Error!\n); else { temp=score/10; switch ( temp ) { case 10 :

文档评论(0)

1亿VIP精品文档

相关文档