From 1bf67e637d4f082f09ddded834d7909a59c99c6b Mon Sep 17 00:00:00 2001 From: Preston Massey-Blake Date: Mon, 7 Feb 2022 12:28:20 -0800 Subject: [PATCH 1/2] gwg --- main.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/main.cpp b/main.cpp index df2c1f1..3508def 100644 --- a/main.cpp +++ b/main.cpp @@ -1,27 +1,28 @@ #include - +#include int main() { 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"; } From 84a663db6fe03f64fd90890809f9d545b98df747 Mon Sep 17 00:00:00 2001 From: Preston Massey-Blake Date: Sat, 19 Feb 2022 23:46:07 -0800 Subject: [PATCH 2/2] addedchanges --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index 3508def..eaf4ecb 100644 --- a/main.cpp +++ b/main.cpp @@ -2,6 +2,7 @@ #include int main() { + int time; int age; char name; char lastinitial;