MeehoweCK

Untitled

Nov 23rd, 2020
652
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int a, b;
  8.     cin >> a >> b;
  9.     cout << a << " + " << b << " = " << a + b << endl;
  10.     cout << a << " - " << b << " = " << a - b << endl;
  11.     cout << a << " * " << b << " = " << a * b << endl;
  12.     if(b == 0)
  13.         cout << "Nie mozna dzielic przez 0\n";
  14.     else
  15.         cout << a << " / " << b << " = " << 1.0 * a / b << endl;
  16.     return 0;
  17. }
RAW Paste Data