c语言习题及答案爱课程mooc(参考).docxVIP

  • 117
  • 0
  • 约3.02万字
  • 约 51页
  • 2017-06-09 发布于浙江
  • 举报

c语言习题及答案爱课程mooc(参考).docx

第一章1.1题目内容:使用printf()在屏幕上输出 hello world!提示:#include ?stdio.hint main(){printf(hello world!\n);return 0;}输入格式:无输出格式:输出提示信息:hello world!\n输入样例:输出样例:hello world!#include stdio.hint main(){printf(hello world!\n);return 0;}1.2在屏幕上输出多行信息(3分)题目内容:使用printf()函数在屏幕上输出以下多行信息:hello world!hello hit!hello everyone!提示:在printf()函数中转义字符‘\n’表示换行。输入格式:输出格式:输出提示信息:hello world!\nhello hit!\nhello everyone!\n输入样例:输出样例:hello world!hello hit!hello everyone!#include stdio.hint main(){ printf(hello world!\n); printf(hello hit!\n); printf(hello everyone!\n); return 0;}1.3计算半圆弧的周长及半圆面积(3分)题目内容:编程并输出半径r=5.3的半圆弧的周长及该半圆的面积,

文档评论(0)

1亿VIP精品文档

相关文档