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