1 题目内容: 使用 printf()在屏幕上输出 hello world
提示: #include int main() { printf("hello world
\n"); return 0; } 输入格式: 无 输出格式: 输出提示信息:"hello world
\n" 输入样例: 输出样例: hello world
#include int main() { printf("hello world
\n"); return 0; } 1
2 在屏幕上输出多行信息(3 分) 题目内容: 使用 printf()函数在屏幕上输出以下多行信息: hello world
hello hit
hello everyone
提示: 在printf()函数中转义字符‘\n’表示换行
输入格式: 输出格式: 输出提示信息: "hello world
\n" "hello hit
\n" "hello everyone
\n" 输入样例: 输出样例: hello world
hello hit
hello everyone
#include int main() { printf("hello world
\n"); printf("hello hit
\n"); printf("hello everyone
\n"); return 0; } 1
3 计算半圆弧的周长及半圆面积(3 分) 题目内容: 编程并输出半径 r=5
3 的半圆弧的周长及该半圆的面积,的取值为 3
要求半径 r 和必须利用宏常量表示
输入格式: 无 输出格式: 半圆的面积输出格式: "Area=%f\n" 半圆弧的周长输出格式: "circumference=%f\n" 输入样例: 输出样例: Area=44
123632 circumference=16