Skip to main content

Programming in Turbo C

 Make your own first software in your life just for demo I am showing you to make your basic SUM two digit calculator by using C language

Step1: Open TurboC you will get this window

Step2: Open New File by clicking on File>>New

Step3: Type this Sample Program in it.

void main()
float a, b, sum;
printf("\t\t-:My First Software:-\n");
scanf("%f", &a);
scanf("%f", &b);
sum = a+b;
printf("\n\tA+B=%f", sum);

Step4: Save as any name as you want along with dot C (.C) or (.c) extension for example “anyname.c”. By Clicking on File>>Save as

Step5: Compile it by clicking on Compile>>Compile & Run it By Clicking on RUN
After running program a black window will be open.

Step6: Enter any first Digit and press Enter button of PC
Enter any second Digit and press Enter button of PC
And you will get SUM of 2 numbers you entered

Step6: To view your Executable file (.exe on windows) open “C:\TurboC++\Disk\TurboC3\BIN” in BIN Folder you will see file anyname.c (step4) which is I have save earlier in step4. Here you can change your program and open it into TurboC. Or you can simply type your code in Notepad or any Text Editor and save it in BIN Folder along with .c Extension then it can be open from TurboC. To open your program file BIN go to TurboC File>>Open and type your filename along with .c extension and compile it then after run it.

Step7: To get your executable file go to folder “C:\TurboC++\Disk\TurboC3\SOURCE” open source folder here you can see your executable as your file name double click on it to run first software of your life.


Popular posts from this blog

Comments in C

  Comment is the code which is not executable means compiler will not compile the comments and that’s why comments are not visible on output screen. Two types of Commenting: Type 1:  double slash ‘ // ’ method the whole statement after double slash is not executed by compiler Example: try to run below code its output will be blank screen #include <stdio.h> void main(){ // printf (“Hello World!”); } #include<stdio.h> void main ( ){ //Comments // Comment printf (“Hello World!”);//abc } #include<stdio.h> //Comments void main(){ //Comments printf(“Hello World”); } o/p:  blank screen O/p:  Hello World! O/p:  Hello World In this way you can give multiple comments anywhere in the program but double slash is used to  comment only single line for commenting multiple lines use type 2.  Type 2:  For multiline commenting or for commenting a whole paragraph from the program we have  to add /* at the start of comment and */ at the end of comment as shown in examples: #include <s

New trends and advantages of C language.

1. You can program the ROBOTS and  Automatic Running Machines  using C language. click here for more information.  2. For building more advanced  software or  Games you need to  learn more advanced languages like  Visual  Basic,  .NET, JAVA, ANDROID programming which is based on C.  3. To build a website you need only HTML and you can make your own website but for making it more advance you need to learn more web designing languages like CSS, JavaScript, Ajax, PHP and this all languages are very easy to learn if you have some basic knowledge about C. 4. After learning C you will be able to make your own software like Calculator, Games, Embedded Softwares, Compilers.