running = True
while True:
try:
a = int (input("Number A:")
b = int (input("Number B:")
ans = (a + b)
except ValueError:
print ("Only number can enter")
else:
print (ans)
覺得自己智商堪憂
running = True
while True:
try:
a = int (input("Number A:")
b = int (input("Number B:")
ans = (a + b)
except ValueError:
print ("Only number can enter")
else:
print (ans)
覺得自己智商堪憂
a, b = map(int, input().split());
print(a+b);