fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int main(){
  5.  
  6. int i = 0;
  7.  
  8.  
  9.  
  10. while (i<10){
  11. cout <<i;
  12. i++;
  13. }
  14. cout << endl;
  15. for(i=0; i<10; i++){
  16. cout << i;
  17. }
  18.  
  19. //Write a code, that increments by i, and counts from 0-100.
  20.  
  21.  
  22.  
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0s 2724KB
stdin
Standard input is empty
stdout
0123456789
0123456789