Advertisement
Josif_tepe

Untitled

Apr 20th, 2024
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int soberi(int x) {
  5.     return x + 5;
  6. }
  7. int soberi_dva_broj(int x, int y) {
  8.     return x + y;
  9. }
  10. int main() {
  11.     int t = soberi(5);
  12.     int t2 = soberi_dva_broj(2, 3);
  13.    
  14.     cout << t << endl;
  15.     cout << t2 << endl;
  16.    
  17.     return 0;
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement