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