fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. for (struct {size_t i; bool ok;} s = {0, true}; s.ok; ++s.i) {
  6. s.ok = s.i < 10;
  7. cout << s.i;
  8. }
  9. return 0;
  10. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
012345678910