You can write the program on dev c++ or turbo c which can be easily download from google search .but from my opinion dev C++ is the best one .
after the dev c++ install go to the file and then new and after that source file after this a new page is open the you can write program on that page.
I taught u how to write the program .
first very easy step
Write a program to display hello on output screen.
#include<stdio.h> //#include is an preprocessor
//stdio.h is an library
int main() //int main very all the work will done on the scope
//scope open
//printf is defined on stdio.h library
{
printf("Hello"); // ;(semicolon) is very important after the end of the line
return 0; // it will return value
} //scope closed
after writing this program u type f11 for compiling.
No comments:
Post a Comment