fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. for (int i = 0; i < 20;) {
  7. std::cout << (i++ % 5) << "\n";
  8. }
  9.  
  10. // your code goes here
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5300KB
stdin
Standard input is empty
stdout
0
1
2
3
4
0
1
2
3
4
0
1
2
3
4
0
1
2
3
4