fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int t;
  6. while(cin >> t){
  7. if(t < 3){
  8. cout << t+2 << endl;
  9. } else {
  10. cout << t << endl;
  11. }
  12. }
  13. }
Success #stdin #stdout 0s 3416KB
stdin
3
stdout
3