Advertisement
DRAWNBOX

1337 Calculator

May 27th, 2015
1,100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int input1;
  8.     int input2;
  9.     int input3;
  10.     cout << "What would you like to multiply?" << endl;
  11.     cout << "Please type in a first number" << endl;
  12.     cin >> input1;
  13.     cout << "Please type in a second number" << endl;
  14.     cin >> input2;
  15.     cout << "Please type in a third number" << endl;
  16.     cin >> input3;
  17.     cout << "The answer is " << input1*input2*input3 <<endl;
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement