C++ program to prints the sum, difference, products, quotient, and remainder of two integers

0
127
digitalample eye
Write a program that prints the sum, difference, products, quotient, and remainder of two integers with values that are inputted.

Write a object oriented program to find the sum, difference, products, quotient and remainder of two integer with value that are inputted. 
C++ program to prints the sum, difference, products, quotient, and remainder of two integers

Write OOP Program to find add, div, mul, sub or two numbers. 

C++ Source Code

#include<iostream.h>
#include<conio.h>
void main()
{
int x, y, sum, pro, dif, rem, quot;
cout<<"Enter First Number:";
cin>>x;
cout<<"Enter Second Number:";
cin>>y;
sum=x+y;
pro=x*y;
dif=x-y;
rem=x%y;
quot=x/y;
cout<<"nThe Sum is:"<<sum<<"nThe Product is:"
<<pro<<"nThe Difference is:"
<<dif<<"nThe Reminder is:"<<rem<<"nThe Quotient"<<quot;
cout<<"nThank you...";
cout<<"nPress any key to continue...";
getch();
}

LEAVE A REPLY

Please enter your comment!
Please enter your name here