Hi, I think I have a problem with this question, not sure what to do when the input is zero, since it didn’t say that the input couldn’t be zero, anyways I made two codes, one where there is no output for zero, and one where I consider zero to be positive, both are wrong…
here’s my list of codes
edit : the code that probably mattered, are the codes where I got WA
Zero is neither positive and nor negative. And I assumed that they would not give 0 in the input and got AC. There is some flaw in your code. Debug carefully and you will find it. Do read the question again.