j

Tuesday, 3 November 2015

Write a program that take 2 number from user and find its sum, product,diffrence,quotient and remeinder and display all

#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,sum,prod,dif,qou,rem;
cout<<"Enter Two numbers:";
cin>>a>>b;
sum=a+b;
prod=a*b;
dif=a-b;
qou=a/b;
rem=a%b;
cout<<"Sum of two values is "<<sum<<endl;
cout<<"Product of two valuse is "<<prod<<endl;
cout<<"Diffrence of two values is "<<dif<<endl;
cout<<"Qoutient of two valuse is "<<qou<<endl;
cout<<"Reminder of two values is "<<rem<<endl;
getch();
}


Subscribe to this Blog via Email :