fork download
  1. #include <iostream>
  2. int main()
  3. {
  4. double i;
  5. for (i = 1.0; i < 10.3; i += 0.1)
  6. if (i > 8.09 && i < 8.11)
  7. break;
  8. std::cout << "i = " << i << std::endl;
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
i = 8.1