C • Hello World
Buat File hello.c
vim hello.c
Tulis Program
#include <stdio.h> // Panggil library dasar untuk input/output
int main() {
printf("Hello World!"); // Cetak Hello World! Ke layar
return 0; // Program selesai tanpa error
}
Compile
gcc hello.c -o hello
Jalankan
./hello