Writing and Executing C program (Last day)
Congratulations..! Now you have almost completed our 7 days C online course. This is your last day of C program course. Here we have given a simple C program code. You need C compiler to run these codes. Don’t worry, you can free download C software from here.Your first C Program
This 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, displays “Result is greater than 10” otherwise displays “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 compiler
Refer the scree shots below.Step 1: Create a new file
Step 2: Extend the editor window by clicking in the arrow mark shown
How to run a C program?
Step 3:Now write your first C program codes in the editor window, then RunHow to create Stand alone EXE file?
Open File>Save
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.
Ads
0 comments:
Post a Comment