Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("""Operations:
- Multiplication
- Subtract
- Add
- Divide.""")
- print("If you don't want to add any other number just set it to 1")
- print("For subtract set it to 0")
- print("The same thing with Add")
- print("If you dont want to add anymore in divide set it to 1")
- Operation = input("What is the operation you want: ")
- Num1 = float(input("What is the first number: "))
- Num2 = float(input("What is the second number: "))
- Num3 = float(input("What is the third number: "))
- Num4 = float(input("What is the fourth number: "))
- Num5 = float(input("What is the fifth number: "))
- Num6 = float(input("What is the six number: "))
- if Operation == "Multiplication":
- print("Result:", Num1 * Num2 * Num3 * Num4 * Num5 * Num6)
- elif Operation == "Subtract":
- print("Result:", Num1 - Num2 - Num3 - Num4 - Num5 - Num6)
- elif Operation == "Add":
- print("Result:", Num1 + Num2 + Num3 + Num4 + Num5 + Num6)
- elif Operation == "Divide":
- print("Result:", Num1 / Num2 / Num3 / Num4 / Num5 / Num6)
- else:
- print("Invaild operator! please try again.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement