Test case not passing on codingblocks idle

Sir,
I wrote a program on finding whether the input is in upper case or lower case. First I wrote on VS code then checked it nd my all user input test cases passed. But when I tried to submit my code it showed none of my test cases have passed.I am showing my code sir.

hi
ur code seems fine… can u share pic of ques

yea sure.

hi
so in line 18 of ur code instead of cout<<“INVALID”;
make it cout<<“Invalid”;
it would pass all test cases then…

No . My all test cases r getting a wrong answer.

did u make this change and try submitting it again?
remove line 9 also… it is not expected in output…
my code --> https://ide.codingblocks.com/s/620657

ya thankyou!!I removed the 9th line nd all cases are passing.Btw any idea why my cases werent passing??

yes because line 9 was outputting the statement which was not required in the ans… thus test cases were not passing

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.