12 lines
314 B
C
12 lines
314 B
C
#include <stdio.h>
|
|
int main(void) /* 一个简单的 C 程序 */
|
|
{
|
|
int num; //定义一个整型变量 num
|
|
num = 1; //赋值为1
|
|
|
|
printf("I am a simple"); //使用printf()函数
|
|
printf("computer.\n");
|
|
printf("My favorite number is %d because it is first.\n", num);
|
|
|
|
return 0;
|
|
} |