0
why prints it "no output"
#simple calculator #divide is ÷ not \ x = input() y = input(" ") z = input() if y == ("+"): a = int(x) + int(z) print (x + "+" + z + "=" + str(a)) elif y == ("-"): a = int(x) - int(z) print (x + "-" + z + "=" + str(a)) elif y == ("÷"): a = int(x) / int(z) print(x + "÷" + z + "=" + str(a)) elif y == ("×"): a = int(x) * int(z) print(x + "×" + z + "=" + str(a)) why are the last two printing no output
1 Odpowiedź
0
remove double quotes of y=input(" ")
and then try..