Addition of numbers in c language.
Addition of two numbers
This programme add two number taken from the user.The following method has used in programme
- Take two input from the user.
- Add them .
- And store the result into other variable.
- Then display the result.
Addition of number
#include<stdio.h>
#include<conio.h>
void main()
{
int n,m,s=0;
printf("Enter 1st number");
scanf("%d",&n);
printf("Enter 2nd number:");
scanf("%d",&m);
s=n+m;
printf("Sum of number is %d",s);
getch();
}
Addition of numbers in c language.
Reviewed by Deepak kumar soni
on
October 16, 2018
Rating:
No comments: