fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int age;
  6. if ( 18 >= age ) {
  7. cout << "You are old enough" << endl;
  8. }
  9. else {
  10. cout << " You are not old enough";
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 5320KB
stdin
Elaine
stdout
You are old enough