What is wrong in my code

Please check my code it is giving WA on multiple test cases

Link: https://ide.codingblocks.com/s/246815

Hi Hemant… I am not able to find the mistake in the code can you please ask it again on the portal ? Maybe someone else can give it a look

@HemantKumar
your code is correct
but you were taking input and giving output in wrong way,
here is the correct code

1 Like