acc. to ques my code just take only one character input
and all test cases are not correct
code link:https://ide.codingblocks.com/s/82352
Ques not given properly
Hi Rohan,
You have to use loop as according to question you have to take input till the user doesnot give ‘x’ or ‘X’ as an input.
hlo, what will be condition of loop for taking character many times input
Hi Rohan,
You can put this condition ch != ‘x’ && ch != ‘X’ as test condition for loop.