How to check for invalid input

how to check for invalid input

hi…

if user does not gives the UPPERCASE or lowercase
then you have to print “invalid”

you can do this by simply using
"if else " ladder

i hope this helps,
if you have further doubt, feel free to ask

reference code :

hellooooooooooooooooooooo

do you have any further doubt in this?