Home Top Ad

Installing CodeBlocks and Writing first program "Hello World"

Share:

Installing Compiler: CodeBlocks is the C Compiler. In order to program in C you need to install CodeBlocks. You can download it from any source of internet.
Writing First Program in C:           After installing CodeBlocks open it then on this page click on open new empty file. Just like the picture below:




Fig: Creating an empty new file in CodeBlocks

Now Write your first program (Hello World).
Codes are given below:
#include<stdio.h>
main()
{
    printf("Hello World");

}


Then click on build button

Then click on run button just near the build button.
It will run your first program.

No comments