作业帮 > 综合 > 作业

一道简单的 C语言题目 小弟在线等

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/04/28 20:42:16
一道简单的 C语言题目 小弟在线等
Write a C program that produces the following output
Counting down
5
4
3
2
1
Liftoff!
#include
int main()
{
int i=5;
printf("Counting down\n");
while(i>0)
{
printf("%d\n",i);
i - -;
}
printf("Liftoff!");
return 0;
}