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 drive" << endl;
  10. }
  11. else {
  12. cout << "you cant drive";
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5392KB
stdin
3
stdout
you cant drive