My program is designed for one test case at a time. So it gives an output for 1 test case and then goes to the different test case. Therefore giving the wrong answer for the second test case.
How do I modify my program to take inputs of all test cases at once then print the outpt.
Unable to take multiple test cases at once
Share your code. Save it on ide.codingblocks.com and share its link.
I will make the required changes.
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.