Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6.  
  7. {
  8. float pas ,sk1 ,sk2 , rezultatas ;
  9.  
  10. cout << "**Calculator, Made by Valdas Vabolis**\n" << endl;
  11.  
  12. cout << "Choose what you want to do : \n" << endl;
  13. cout << "Add - 1" << endl;
  14. cout << "Subtract - 2" << endl;
  15. cout << "Multiply - 3" << endl;
  16. cout << "Divide - 4" << endl;
  17. cout << "Involute - 5" << endl;
  18.  
  19. cin >> pas;
  20.  
  21. if (pas == 1)
  22. {
  23.  
  24.  
  25. cout << "You want to add" << endl;
  26. cout << "Enter the first number" << endl;
  27. cin >> sk1;
  28. cout << "Enter the second number" << endl;
  29. cin >> sk2;
  30. rezultatas = sk1 + sk2;
  31. cout << " This combination equals " << rezultatas << endl;
  32.  
  33.  
  34. }
  35.  
  36.  
  37. else if (pas == 2)
  38.  
  39. {
  40. cout << "You want to subtract" << endl;
  41. cout << "Enter the first number " << endl;
  42. cin >> sk1;
  43. cout << "Enter the second number " << endl;
  44. rezultatas = sk1 - sk2;
  45. cout << " This combination equals " << rezultatas << endl;
  46. }
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59. return 0;
  60.  
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement