Incredible hulk


for the sample input output is
2
1
2
but my output is coming
2
2

@yutikakhanna,sorry i did not read the whole condition of HULK.yes your logic is correct but you are only taking input single time.but in problem it has multiple test cases.take a test cases input and print for all test cases

pls tell in the form of a code

@yutikakhanna here is your updated code(https://ide.codingblocks.com/s/178032).still faces any problem let me know else mark this doubt as resolved.

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.