Advertisement
Kacper_Michalak

Zadanie funkcje 1

Jan 23rd, 2021
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int SUMA(int x, int y)
  6. {
  7. int wynik = 0;
  8.  
  9. wynik = x + y;
  10.  
  11. return wynik;
  12. }
  13.  
  14.  
  15. int main()
  16. {
  17. cout << SUMA(5, 6) << endl;
  18. cout << SUMA(54, 67) << endl;
  19. cout << SUMA(55, 60) << endl;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement