#include <iostream>
using namespace std;
int main() {
int n1;
int n2;
int add;
int sub;
int mul;
int div;
cout << "Enter number 1:";
cin >> n1;
cout << "Enter number 2:";
cin >> n2;
add = n1+n2;
sub = n1-n2;
mul = n1*n2;
div = n1/n2;
cout << "Answer " <<endl;
cout << n1 << " + " << n2 << " = " << add << endl;
cout << n1 << " - " << n2 << " = " << sub << endl;
cout << n1 << " * " << n2 << " = " << mul << endl;
cout << n1 << " / " << n2 << " = " << div << endl;
}
You can Fork this with the below Link:
Link to Fork the above Example
Comments
Post a Comment