c程序设计谭浩强第四版第4章.pptVIP

  • 17
  • 0
  • 约1.58万字
  • 约 36页
  • 2017-06-29 发布于浙江
  • 举报
c程序设计谭浩强第四版第4章

C语言程序设计 第四章 选择结构程序设计 例 根据输入的字母输出相应的字符串 #include stdio.h void main() { int c; printf(Enter m or n or h or other:); c=getchar(); switch(c) { case m: printf( Good morning!\n);break; case n: printf( Good night!\n); break; case h: printf( Hello!\n); break; default : printf( ????????\n); } } m? Good morning! C语言程序设计 第四章 选择结构程序设计 例4.6 求ax2+bx+c=0方程的解 #include stdio.h #includemath.h void main() { float a,b,c,d,disc,

文档评论(0)

1亿VIP精品文档

相关文档