+ 1
what is the problem in this code???
x = int(input()) y = int(input()) if x+y>0 : print ('this number is positive') what is the problem in this code???
6 Answers
+ 4
I'm not familiar with the language but if x = -2 and y = -1, you will get the wrong output. you're just adding the inputs without considering if they are negative.
+ 1
oh... thanks now I found the difference
0
but sorry i didn't find any difference between your code and mine
0
OK thanks for your observation