Skip to content
Open
Show file tree
Hide file tree
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
Binary file added kermit.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions kermit.jpg:Zone.Identifier
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=https://www.google.com/
HostUrl=https://i.ytimg.com/vi/5AzT5nQh8bk/hqdefault.jpg
17 changes: 11 additions & 6 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <iostream>
#include <string>
using namespace std;

int main()
Expand All @@ -8,24 +9,28 @@ int main()
char last initial;

cout<<"Hi. What is your first name? "
cin<<name;
cout<<"name, what is the first letter of your last name? ";
getline(cin,name);
cin.ignore();
cout<<name<<", what is the first letter of your last name? ";
cin>>last initial;
cout<<"Thanks, "<<name<< <<last initial<<.<<endl;
cout<<"Thanks, "<<name<< <<last initial<<i"."<<endl;
cout<<"Please also tell me how old you are: ";
cin>>age>>endl;
cin>>age;
cout << 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( age >= 18 );
}
else if( age >= 18 );
{
cout<<"Pleased to meet you!\n";
}


return 0;
}