fork download
  1. #include <iostream>
  2. int main() {
  3. int i = 3;
  4. do {
  5. (i == 3) ? (std::cout << "Is 3.\n", 0) : ++i;
  6. ++i;
  7.  
  8. } while ( i < 4 );
  9. return 0;
  10. }
Success #stdin #stdout 0.02s 2724KB
stdin
Standard input is empty
stdout
Is 3.