-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple_calculator.py
More file actions
47 lines (31 loc) · 1.09 KB
/
Copy pathsimple_calculator.py
File metadata and controls
47 lines (31 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
"""
Filename: simple_calculator.py
Author: <Carcamo, Fredys>
Created: <8/28/2025>
Instructor: Holtslander
"""
print("Addition")
num1 = input("Please enter your first number without any commas.\n")
num2 = input("Please enter your second number without any commas.\n")
num1 = int(num1)
num2 = int(num2)
print(num1, num2, num1 + num2)
print("Subtraction")
num1 = input("Please enter your first number without any commas.\n")
num2 = input("Please enter your second number without any commas.\n")
num1 = int(num1)
num2 = int(num2)
print(num1, num2, num1 - num2)
print("Multiplication")
num1 = input("Please enter your first number without any commas.\n")
num2 = input("Please enter your second number without any commas.\n")
num1 = int(num1)
num2 = int(num2)
print(num1, num2, num1 * num2)
print("Division")
num1 = input("Please enter your first number without any commas.\n")
num2 = input("Please enter your second number without any commas.\n")
num1 = int(num1)
num2 = int(num2)
print(num1, num2, num1 / num2)
print("Thank you for using this program!")