fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int age;
  7. cin >> age;
  8. if(age < 18){
  9. cout << "you can't drive" << endl;
  10. }
  11. if(age >= 18){
  12. cout << "you can drive" << endl;
  13. }
  14. if(age >= 100){
  15. cout << "you're too old" << endl;
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5388KB
stdin
101
stdout
you can drive
you're too old