hello, im new to C++ and I have a question about a problem I am having. I am useing the If statements to ask questions and the question is
How old are you?
I got the coding right and it all works but I am having a problem.
I have
It all works..... Except the OH MY GOD part of it.... I want to put in the coding "Equal to or Greater than 100"Code:if ( Age < 50 ) { cout<<"Well your not over the hill yet haha.\n"; } else if ( Age == 50 ) { cout<<"Hmm, congratulations on making it this far without being shot.\n"; } else if ( Age > 50 ) { cout<<"well your over the hill and falling.....\n"; } if ( Age >= 100 ) { cout<<"OH MY GOD!\n"; } cin.get();
so what I have here is if you are under 50 you get the first responce. If your equal to 50 you get the second... and if you are above 50 you get the 3rd...
If you are over OR equal to 100 or over I want it to say the 4th responce. how do i fix this?