例2-2显示文字
输出两行短句
程序核心——输出语句printf
程序
#include<stdio.h>
int main(void)
{
printf("programming is fun.\n");
printf("And programming in C is even more fun!\n");
return 0;
}
结果
programming is fun.
And programming in C is even more fun!
--------------------------------
Process exited after 0.3383 seconds with return value 0
请按任意键继续. . .
分析
重点:\n在输出结果是回车