Skip to content
Open

Hi #38

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ int main()
string name;
char last initial;

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, "<<name<< <<last initial<<.<<endl;
cout<<"Please also tell me how old you are: ";
cout<<"Hi. What is your first name? "<<endl;
cin<<name<<endl;
cout<<"name, what is the first letter of your last name? "<<endl;
cin>>last initial<<endl;
cout<<"Thanks, "<<name<<" "<<last initial<<"."<<endl;
cout<<"Please also tell me how old you are: "<<endl;
cin>>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 )
Expand Down