2021c语言习题及答案爱课程mooc.docxVIP

  • 85
  • 0
  • 约3.28万字
  • 约 49页
  • 2021-01-12 发布于天津
  • 举报
第一章 1.1 题目内容: 使用printf()在屏幕上输出 hello world! 提示: #include stdio.h int main() { printf(hello world!\n); return 0; } 输入格式: 无 输出格式: 输出提示信息:hello world!\n 输入样例: 输出样例: hello world! #i nclude stdio.h int mai n() { prin tf(hello world!n ”); return 0; } 1.2 在屏幕上输出多行信息(3分) 题目内容: 使用printf()函数在屏幕上输出以下多行信息: hello world! hello hit! hello everyone! 提示: 在printf()函数中转义字符 h表示换行。 输入格式: 输出格式: 输出提示信息: hello world!\n hello hit!\n hello everyone!\n 输入样例: 输出样例: hello world! hello hit! hello everyone! #i nclude stdio.h int mai n() { prin tf(hello world!\n”); prin tf(hello hit!\n); prin tf(hello every on e!\n); return

文档评论(0)

1亿VIP精品文档

相关文档