MeehoweCK

Untitled

Aug 27th, 2019
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int wybor;
  8.     cout << "[1] dodawanie" << endl;
  9.     cout << "[2] odejmowanie" << endl;
  10.     cout << "[3] mnozenie" << endl;
  11.     cout << "[4] dzielenie" << endl;
  12.     cout << "[5] rezygnuj" << endl;
  13.     cin >> wybor;
  14.    
  15.     double a, b;
  16.     cout << "Podaj dwie liczby rzeczywiste: ";
  17.     cin >> a >> b;
  18.     switch(wybor)
  19.     {
  20.     case 1:
  21.         cout << a << " + " << b << " = " << a + b << endl;
  22.     case 2:
  23.        
  24.     case 3:
  25.        
  26.     case 4:
  27.        
  28.     case 5:
  29.        
  30.     }
  31.     return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment