Advertisement
Mihai_Preda

Untitled

Nov 13th, 2020 (edited)
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. /**
  2.  * Copyright ITOIT Meditatii SRL
  3.  * Lesson challenge
  4.  */
  5. #include <iostream>
  6.  
  7. using namespace std;
  8.  
  9. // Ce afiseaza programul de mai jos?
  10.  
  11. void f()
  12. {
  13.     cout << "f a fost apelat\n";
  14. }
  15.  
  16. int g(int x)
  17. {
  18.     return x + 2;
  19. }
  20.  
  21. int main()
  22. {
  23.     int a = 5;
  24.     f();
  25.     cout << g(a);
  26.     return 0;
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement