I’m getting runtime error for the below code.
n1,n2=map(int,input().split())
if(n1>n2):
print(n1-n2)
else:
print(n1+n2)
I’m getting runtime error for the below code.
n1,n2=map(int,input().split())
if(n1>n2):
print(n1-n2)
else:
print(n1+n2)
Your code have indentation problem as far as i can see
sorry while pasting it I dint correct the indendation.
Even I have the same problem and i dont think there is something wrong in the code. Did you find any solution?
Give the input in different lines.It is not clearing compile but if you submit it is accepting it.
Thank you darria. Appreciate it