write the program in c language input 2 number and display the sum of two numbers
Answers
Answered by
15
The c language Program for the Sum of two numbers is following :-
• #include<stdio.h>
• #include<conio.h>
• void main ()
• {
• int a,b, sum ;
• clrscr();
• printf("Enter any two numbers");
• scanf("%d%d",%a%b);
• sum = a+b;
• printf("sum = %d",sum);
• getch();
• }
Note :-
- The whole code should be in lower case because c language is case sensitive.
- Don't do mistake in semicolons otherwise code will not run.
- Be careful , after void main we don't use semicolon.
C language :-
C language is a computer programming language that was developed in 1972 by Dennis Ritchie. It was developed by modifying earlier programming language BCPL ( Basic Combined Programming language).
Answered by
6
Answer:
Addition program in C
int main() { int x, y, z;
printf("Enter two numbers to add\n"); scanf("%d%d", &x, &y);
printf("Sum of the numbers = %d\n", z);
hope it's help u...
pls mark me as brainlist pls.....
Similar questions