Wednesday, 23 March 2016

Write a Program to ADD , MULTIPLY , SUBTRACT and DIVIDE two no's.

//Write A Program to ADD , MULTIPLY , SUBTRACT and DIVIDE two no's.

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,add,sub,mul,div;
cout<<"Enter first no or value of a=";
cin>>a;
cout<<"Enter second no or value of b=";
cin>>b;
add=a+b;
sub=a-b;
mul=a*b;
div=a/b;
cout<<"Sum of a & b ="<<add<<endl;
cout<<"Subtraction of a & b ="<<sub<<endl;
cout<<"Multiplication of a & b ="<<mul<<endl;
cout<<"Division of a & b ="<<div<<endl;
getch();
}

 OutPut:-

 



No comments:

Post a Comment