Ultra Fast mathematician . wrong answer

whyi am getting wrong answer in one test case

my code https://ide.codingblocks.com/s/62792

@D18LP0008 Mr johnwick you are running your program for multiple test case so put cout<<endl; otherwise you will get error https://ide.codingblocks.com/s/62798 i have corrected you code

2 Likes

Hi @D18LP0008, yes you need to print a new line after every testcase.