Skip to content

Commit

Permalink
Added basic structure to the program
Browse files Browse the repository at this point in the history
  • Loading branch information
evokerking1 committed Aug 19, 2024
0 parents commit b6ceed4
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/Calculator.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/discord.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions main.py
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!")

0 comments on commit b6ceed4

Please sign in to comment.