fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int func()
  5. {
  6.  
  7. for(int i =0; (i <10) ; ++i)
  8. {
  9. cout << "i:" << i << endl;
  10. }
  11. int x =10;
  12. }
  13.  
  14. int main() {
  15. func();
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
i:0
i:1
i:2
i:3
i:4
i:5
i:6
i:7
i:8
i:9