first.c 412 B

12345678910111213
  1. // first.c
  2. #include <stdio.h>
  3. int main(void) /* a simple program */
  4. {
  5. int num; /* define a variable called num */
  6. num = 1; /* assign a value to num */
  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. return 0;
  11. }