Sunday, February 1, 2015

Hello World

Dengan menggunakan text editor e.g. gedit copy code berikut lalu berinama hello.c lalu save

#include <stdio.h>
int  main(void)  
{                
  printf ("Hello World !\n");
}                

Pada terminal (Ubuntu), ketik:
gcc -o hello hello.c   lalu enter

lalu run: ./hello
Maka akan diprint Hello World!

No comments: