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