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