MeehoweCK

Untitled

Nov 23rd, 2020
571
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.  
  13.     // UWAGA: dzieląc przez siebie dwie liczby całkowite (int), wynik zawsze będzie całkowity!
  14.     cout << a << " / " << b << " = " << 1.0 * a / b << endl;
  15.     return 0;
  16. }
RAW Paste Data