#include <iostream>
using namespace std;
int main()
{
double n1,n2;
cout << "Enter first number:"<<endl;
cin >> n1;
cout << "Enter second number:"<<endl;
cin >> n2;
cout << n1 << " + " << n2 << "= "<< n1 + n2 <<endl;
cout << n1 << " - " << n2 << "= "<< n1 - n2 <<endl;
cout << n1 << " * " << n2 << "= "<< n1 * n2 <<endl;
cout << n1 << " / " << n2 << "= "<< n1/n2 <<endl;
return 0;
}
No comments:
Post a Comment