Need Help :(

I created a program for a classs and i need help with the last piece, i have no idea how to make the lower case letters = the uppercase letter for a while statement. You need to be able to enter P or p. If you could help me out that'd be great!
this is what i have
} while (p1 != 'P' && p1 != 'R' && p1 != 'S');
closed account (jwkNwA7f)
Do you mean something like this?:
} while (p1 != 'P' && p1 != 'p' && p1 != 'R' && p1 != 'r' && p1 != 'S' && p1 != 's')
yes!!! You are my hero :)
A cleaner way:

} while (toUpper(p1) != 'P' && toupper(p1) != 'R' && toupper(p1) != 'S')
Topic archived. No new replies allowed.