When I click on submit as well I get an error saying the NZEC. It runs well when I give custom inputs, but does not work after the submit button is pressed. Can someone please help me?
Thank you in advance
this way your code to take input would run t times which are the number of test cases .
You can also use while loop but then you have to change the value of t or you can also what someone else has suggested above with while