Showing error when providing input

code- https://ide.codingblocks.com/s/251781

@anubhavb11 you forgot to do t-- for test cases

Damn that’s why i prefer to use for loop tge first time i thought to use while this happened

@anubhavb11 you can use the condition while (t--)

https://ide.codingblocks.com/s/252259 woking for sample test case but failing all test case in hackerblocks

@anubhavb11 there can be multiple test cases so you need to print answer for each test case in a separate line

1 Like