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

int main() {
    int x = 1;

    do {
        cout << x << " ";
        x += 3;
    } while (x < 5);

    return 0;
}