Last dayCongratulations..! Now you have almost completed the Study C in 7 days course. This is your last day of C program course. Here we have given a simple C program code. You need C compiler for run these codes. Don’t worry, you can free download C software from here. Please visit the link for Download and installation guide.
Your first C ProgramThis example program accepts two numbers from the user and calculates its sum. After that it checks whether the sum is greater than 10 or not. If it is greater than 10, display “Result is greater than 10” otherwise display “Result is less than 10” on the monitor.
Program codes are given below, it is easy to understand and well commented.
How to write program codes in C compilerRefer the scree shots below
Create a new file
Extend the editor window by clicking in the arrow mark shown
Now write your first C program codes in the editor window, then Run
How to create Stand alone EXE file
Change the NONAME00.CPP in to any other name here we provided istar.cpp
Then Run the program again
Then Close the window
Now navigate to your installation directory that is "C++ Installation> TurboCPP"
Now you can see ISTAR.EXE application file. Double click on the file, it is your stand alone EXE file.
Click here to download the stand alone EXE