Why is the if statement failed? C++

I’m a bit lost what is the end result you want.

1 Like