Advertisement
MeehoweCK

Untitled

Nov 19th, 2022
647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int suma(int a, int b)
  6. {
  7.     return a + b;       // zwrócenie wartości
  8. }
  9.  
  10. int main()
  11. {
  12.     int a = suma(10, 20);
  13.     cout << a << endl;
  14.  
  15.     cout << suma(a, 50);
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement