To be able to code your program, you would need a text editor. Any command-line editors and GUI editors will do. Simply follow the basic form of a C program,
#include<stdio.h> // call header files
main() //main function
{ //start of function
printf(”Hello World!”); //body of the program
} //end of function
Save the file with your desired filename with the extension .c.
program.c
Open your terminal console for us to compile our code.
To compile, simply type
gcc -o <program_name> <source_code.c>
This command simply compiles the code an executable file which is the program we will execute.
To execute the program, simply type
./<program_name>