When I submit my code non of the test cases work. A few of them give a wrong answer while the others give a “Run Error”. Clearly something is wrong in my logic. but I can’t figure out what. Please Help!
Here is my code: https://ide.codingblocks.com/s/291782