基本知识2023-06-2923:14:18
1 #include <stdio.h> 2 int main(void) /* a simple program */ 3 { 4 int num; /* define a variable called num */ 5 num = 1; /* assign a value to num */ 6 7 printf("I am a simple "); /* use the printf() function */ 8 printf("computer.\n"); 9 printf("My favorite number is %d because it is first.\n",num); 10 11 return 0; 12 }View Code
1 #include <stdio.h> 2 int main(void) /* a simple program */ 3 { 4 int num; /* define a variable called num */ 5 num = 1; /* assign a value to num */ 6 7 printf("I am a simple "); /* use the printf() function */ 8 printf("computer.\n"); 9 printf("My favorite number is %d because it is first.\n",num); 10 11 return 0; 12 }
标签:10,int,基本知识,C语言,---,simple,num,printf From: https://www.cnblogs.com/semicon/p/17515451.html