diff --git a/main.cpp b/main.cpp index ecca4f4..475bf98 100644 --- a/main.cpp +++ b/main.cpp @@ -8,19 +8,19 @@ int main() string name; char last initial; - cout<<"Hi. What is your first name? " - cin<>last initial; - cout<<"Thanks, "<>last initial<>age>>endl; if( age < 12 ) { cout<<"Hey kid, how do you like school?\n"; } - if( age < 18 ) + else if( age < 18 ) cout<<"Cool!"endl; cout<<"How's highschool going?\n"; else if( age == 18 )