Advertisement
WiktorMalisak

Zadanie 5

Mar 24th, 2020
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int SUMA (int x, int y)
  5. {
  6.     int w;
  7.     w=x+y;
  8.     cout << w << endl;
  9. }
  10. int main()
  11. {
  12.     int x,y;
  13.     cout << "Podaj liczbe x:";
  14.     cin >> x;
  15.     cout << "Podaj liczbe y:";
  16.     cin >> y;
  17.     SUMA(x,y);
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement