First we need a C compiler installed on our machine if its an linux system you can open the terminal and check by typing the command below
cc
if you are a windows guy then follow the steps to download the Dev C++ from Bloodshed
Go to the url below and click on the link show the pic(Highlighted with red box around it)
http://www.bloodshed.net/dev/devcpp.html
After clicking it should start the download
........................................ After the download is completed
Run the executable in the choose components click on remove previous versions if you have already .
After the setup is finished start the Dev C ++ and keep clicking next
Then it should look like this
Then go to File --- New --- Source File And click on it or directly pres ctrl+n
then type the following code
#include<stdio.h>
#include<conio.h>
int main()
{
printf("Hello World");
getch();
}
Then click on Execute Click On Compile
after the program has been compiled
Go to Exexute and click on Run
Congratulations You Have Successfully Written Your First C Program
cc
if you are a windows guy then follow the steps to download the Dev C++ from Bloodshed
Go to the url below and click on the link show the pic(Highlighted with red box around it)
http://www.bloodshed.net/dev/devcpp.html
After clicking it should start the download
........................................ After the download is completed
Run the executable in the choose components click on remove previous versions if you have already .
After the setup is finished start the Dev C ++ and keep clicking next
Then it should look like this
Then go to File --- New --- Source File And click on it or directly pres ctrl+n
then type the following code
#include<stdio.h>
#include<conio.h>
int main()
{
printf("Hello World");
getch();
}
Then click on Execute Click On Compile
after the program has been compiled
Go to Exexute and click on Run
Congratulations You Have Successfully Written Your First C Program
No comments:
Post a Comment