Jul-13-2019, 12:17 PM

So I am working on this software that has a calculator it, yesterday it was working fine but after adding some operations it seems to only do addition.

here is a snip of the code.

here is a snip of the code.

Calcnumone = 0 Calcnumtwo = 0 Calcopcmd = 0 Calcop = 0 Calcop = int(input("What operation do you want?\n1)+\n2)-\n3)x\n4)÷\n5)Mod\n6)Rounding\n7)Ceil\n8)Floor\n")) if Calcop == 1 or "+": Calcnumone = int(input("What is your first number?: ")) Calcnumtwo = int(input("What is your second number?: ")) print("\n") print("Your answer is...") print(Calcnumone + Calcnumtwo) print("\n") continue elif Calcop == 2 or "-": Calcnumone = int(input("What is your first number?: ")) Calcnumtwo = int(input("What is your second number?: ")) print("\n") print("Your answer is...") print(Calcnumone - Calcnumtwo) print("\n") continue elif Calcop == 3 or "x" or "*": Calcnumone = int(input("What is your first number?: ")) Calcnumtwo = int(input("What is your second number?: ")) print("\n") print("Your answer is...") print(Calcnumone * Calcnumtwo) print("\n") continue elif Calcop == 4 or "/": Calcnumone = int(input("What is your first number?: ")) Calcnumtwo = int(input("What is your second number?: ")) print("\n") print("Your answer is...") print(Calcnumone / Calcnumtwo) print("\n") continue elif Calcop == 5 or "%": Calcnumone = int(input("What is your first number?: ")) Calcnumtwo = int(input("What is your second number?: ")) print("\n") print("Your answer is...") print(Calcnumone % Calcnumtwo) print("\n") continue elif Calcop == 6 or "round": Calcnumone = int(input("What do you want to round?: ")) Calcnumtwo = round(Calcnumone) print(Calcnumtwo) continue elif Calcop == 7 or "ceil": Calcnumone = int(input("What do you want to ceil?: ")) Calcnumtwo = ceil(Calcnumone) print(Calcnumtwo) continue elif Calcop == 8: Calcnumone = int(input("What do you want to floor?: ")) Calcnumtwo = floor(Calcnumone) print(Calcnumtwo) continueI am looking to fix the bug, not to improve on the code any other way. Thanks in advance!