1- Open Code::Blocks.
2- In left column, expand your “project” (e.g. learningProject) , go to “Sources” folder and click on “main.c”.
you will see some thing like this:
if “main.c” is empty or contains other code, use following code.
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf(“Hello World!\n”);
return 0;
}
3- click on run as follow.
4- You will see following result.