fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void displayNum(int num) {
  5. cout << num << endl;
  6. }
  7.  
  8. int main() {
  9. // first function call
  10. displayNum(5);
  11.  
  12. // second function call
  13. displayNum(8);
  14.  
  15. // third function call
  16. displayNum(666);
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5528KB
stdin
Standard input is empty
stdout
5
8
666