IF Statement

Jan 24, 2021 at 3:32am
I want to make a program that asks the user to type "HI". But when that it is stored in the variable. I want to make an IF statement that does, if the variable name is equal to "HI" print out "Correct". Any Ideas. Thanks in advance.
Jan 24, 2021 at 11:43am
and what part of this requirement don't you understand/am having difficulty with?

Display some instruction to input (cout)
Obtain the input (cin)
Test input (if)

Have a go and post your attempt so that we can advise further.

Topic archived. No new replies allowed.