fork download
  1. #include <iostream>
  2. int main()
  3.  
  4.  
  5. {
  6. int var;
  7.  
  8. std::cout << "Hello good sir, what is your PR on bench: \n";
  9. std::cin >> var;
  10.  
  11.  
  12. if (var > 160)
  13. {
  14. std::cout << "Excuse me good sir, but that smells of cap.\n";
  15.  
  16. return 0;
  17. }
  18.  
  19. else if (var < 40)
  20. {
  21. std::cout << "Excuse me good sir, but are you two years old?\n";
  22.  
  23. return 0;
  24. }
  25. std::cout << "Respectable good sir.";
  26. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Hello good sir, what is your PR on bench: 
Excuse me good sir, but that smells of cap.