Advertisement
JakubJaneczek

Zadanie 5

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