Write a program to find the addition of two numbers in c.
Answers
Answered by
4
#include<stdio.h>
#include<conio.h>
{ int x,y;
int r;
printf("Enter the two no.");
scanf("%d%d",&x,&y);
r=x+y;
printf("\n Is it your no.=%d",r);
getch();
}
#include<conio.h>
{ int x,y;
int r;
printf("Enter the two no.");
scanf("%d%d",&x,&y);
r=x+y;
printf("\n Is it your no.=%d",r);
getch();
}
Answered by
0
Answer:
#include<constream.h>
void main()
{
clrscr();
int a, b, c;
cout <<"\n Enter first number";
cin>>a;
cout<<"Enter second number";
cin>>b;
c=a+b;
cout<<"\n Addition="<<c;
getch();
}
Similar questions