本题要求编写程序,输出一个短句“programming in c is fun!”。
时间: 2023-04-28 07:01:44 浏览: 104
好的,以下是程序代码:
#include <stdio.h>
int main() {
printf("programming in c is fun!");
return ;
}
相关问题
编写程序,输出一个短句“Programming in C is fun!”
可以使用以下代码来输出短句“Programming in C is fun!”:
#include <stdio.h>
int main() {
printf("Programming in C is fun!\n");
return ;
}
本题要求编写程序,在屏幕上显示两个短句“programming is fun.”和“and programming in c is even more fun!”,每行显示一句。
可以使用以下代码实现:
#include <stdio.h>
int main() {
printf("programming is fun.\n");
printf("and programming in c is even more fun!\n");
return ;
}
运行程序后,屏幕上会显示:
programming is fun.
and programming in c is even more fun!
阅读全文