diff --git a/main.cpp b/main.cpp index df2c1f1..eaf4ecb 100644 --- a/main.cpp +++ b/main.cpp @@ -1,27 +1,29 @@ #include - +#include int main() { + int time; int age; - string name; - char last initial; + char name; + char lastinitial; - cout<<"Hi. What is your first name? " - cin<>name; cout<<"name, what is the first letter of your last name? "; - cin>>last initial; - cout<<"Thanks"<>lastinitial; + cout<<"Thanks"<>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!"; cout<<"How's highschool going?\n"; - else( age >= 18 ) + } + else if( age >= 18 ) { cout<<"Pleased to meet you!\n"; }