Introduction
- C is a programming language developed by Dennis. M. Ritchie at Bell Laboratories for the UNIX Operating System in 1972.
- C is one of the most popular programming languages and it maintains its popularity along with Java programming language which is also used by modern software programmers.
Software Requirements
- Turbo C++ Or C
- Click the link below Or Copy the link and download the software
- https://turboc.codeplex.com
Installing the C
Download the software.
Click I Agree for the next step,
Click Install to continue the process,
Preparing to Install,
Now C has been sucessfully installed.
Let us start the simple program in C.
Simple Addition programming with C
- #include<stdio.h>
-
- int main()
- {
- int a, b, c;
-
- printf("Enter two numbers to add\n");
- scanf("%d%d",&a,&b);
-
- c = a + b;
-
- printf("Sum of entered numbers = %d\n",c);
-
- return 0;
- }
Explanation
- The program is based on adding the two numbers.
- Then the condition is followed as c=a+b.
Output