0
what should be the result
print('welcome to addition calculator\n') x = input('press any number from 0-9\n' ) y = input('press any number from 0-9\n' ) z = x+y print(z)
2 ответов
+ 7
Addition of two numbers which user has given as input.
+ 4
In your code x and y are strings, so x+y is the concatenation of these strings. For instance '25'+'25'='2525'. Use int(input()) or float(input()) to get the numbers