hello.c (#2)

  #include <stdio.h>

  int main()
  {
     printf("Hello world!\n");
     return 0;
  }
  • The printf statement is to output the message to the screen.
  • The \n at the end tells the computer to put the cursor into a new line after printing out the message.

 


Where to go

Chapter 2
News Page
Lesson 1 contents
Contacting Me


Roby Joehanes © 2001