+ 1

C++ Input determines output

So basically...I need a bit of help.I want to make my program output a string depending on what user wrote when input was required. For example: Lets say we have to input an int that represents time of the day.Based on input I want my program to either say Good Morning,Good day,or Good evening.Can this be done using IF/ELSE or not?

14th Jan 2020, 9:55 PM
Code Shadow
Code Shadow - avatar
2 Answers
+ 3
Yes of course it can be done with if/else.
14th Jan 2020, 10:09 PM
Mihai Apostol
Mihai Apostol - avatar
0
Thank you for your answer.
20th Jan 2020, 10:37 PM
Code Shadow
Code Shadow - avatar