-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
print("Hello! Welcome to evokerking's calculator program!" | ||
"\nThis program is a simple calculator that can perform Addition, Subtraction, Multiplication and Division.") | ||
print("Please enter the numbers you want to perform operations on.") | ||
num1 = float(input("Enter the first number: ")) | ||
num2 = float(input("Enter the second number: ")) | ||
print("Please enter the operation you want to perform.") | ||
print("1. Addition") | ||
print("2. Subtraction") | ||
print("3. Multiplication") | ||
print("4. Division") | ||
operation = int(input("Enter the operation number: ")) | ||
if operation == 1: | ||
print("The result of addition is: ", num1 + num2) | ||
elif operation == 2: | ||
print("The result of subtraction is: ", num1 - num2) | ||
elif operation == 3: | ||
print("The result of multiplication is: ", num1 * num2) | ||
elif operation == 4: | ||
print("The result of division is: ", num1 / num2) | ||
else: | ||
print("Invalid operation number. Please enter a valid operation number.") | ||
print("Thank you for using my calculator program!") |