rikardoricz

zad5 Tomasz Świątek 3bTI/2

Oct 27th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int a;
  8.     int b;
  9.     int s;
  10.  
  11.     cout << "Podaj pierwsza liczbe: " << endl;
  12.     cin >> a;
  13.     cout << "Podaj druga liczbe: " << endl;
  14.     cin >> b;
  15.  
  16.     s = a + b;
  17.  
  18.     cout << "Suma liczb a: " << a << " i b: " << b << " wynosi: " << s << endl;
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment