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.



#include<stdio.h>
#include<conio.h>
void main()
{
float a, b, sum;
clrscr();
printf("\t\t-:My First Software:-\n");
printf("\tA=");
scanf("%f", &a);
printf("\n\tB=");
scanf("%f", &b);
sum = a+b;
printf("\n\tA+B=%f", sum);
getch();
}



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.

Comments

Popular posts from this blog

Why should I learn Computer language (Programming)? And why C language good for beginners?

1. Software is the spirit  ( आत्मा )  of hardware . 2. Just by joining some hardware (Electronics  Components) we can’t make our  Computers, Laptops, Mobiles, Tablets, etc. so programming is essential to make this hardware functional. 3. Program instructs and controls the hardware and C is the very basic language to start. 1. By learning a computer language you'll able to build your own software, OS, Virus, Antivirus. For example, WhatsApp, Hike, Calculator,  Media  Player, Facebook, Twitter. 5. After learning the C language you'll be able to build your own computer applications. 6. C language Helps to learn more advanced languages like Java, Dot Net, MATLAB. because this all language depends upon C language. 7. It is good for starters because it is just like the English language and easy to understand.

C-Compiler for Mobile Phone

Run your C language programs on Android Mobile I hope you may aware of the C language compiler. For more information, you may visit on Compilers Page  on my blog. So many C language programmer uses Android but they are not aware of they could run their programs on their phone itself. Even I had the same problem in my first year of Engineering. C-Compiler for Android Mobile Cpp Droid CppDroid is a mobile application that provides an environment to run your C language program this app is installed by  500,000 - 1,000,000  from google play. Download Cpp Droid from here   Steps to run program in CppDroid: Step 1: Download and install CppDroid from play store step2: Open CppDroid step 3: Go to Editor step 4: Type a program step 5: save it as .c extension step 6:  Click on run step 7:Output

Introduction to C Language

 C is a programming language that is invented in the year 1972 by scientist Dennis Ritchie at AT & T Bell Lab of California University in the USA, to use as a system language for the UNIX operating system. C  language is the same as English language means it is understandable to humans but the hardware will not able to understand human language because it understands only the Machine Language we don’t need to go in deep about  Machine  Language just remember it.  Therefore to communicate with machines we have to convert our language into machine language for that we need a compiler (Compiler is nothing but Computer software). The compiler can convert our C language into Machine Language.