Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PriviteraGabriele committed Nov 8, 2023
1 parent 552f36d commit 5621d42
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions src/calculator.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# Write a program that given two numbers as input make the main operations.

# Output:
# Insert first number: 4
# Insert second number: 2

# SUM: 6
# Difference: 2
# Multiplication: 8
# Division: 2

def calculator(a: float, b: float) -> None:
print("SUM: ", a + b)
print("Difference: ", a - b)
print("Multiplication: ", a * b)
print("Division: ", a / b)

# Input the first number
a = float(input("Insert the first number: "))

# Input the second number
b = float(input("Insert the second number: "))

calculator(a, b)
# Write a program that given two numbers as input make the main operations.

# Output:
# Insert first number: 4
# Insert second number: 2

# SUM: 6
# Difference: 2
# Multiplication: 8
# Division: 2

def calculator(a: float, b: float) -> None:
print("SUM: ", a + b)
print("Difference: ", a - b)
print("Multiplication: ", a * b)
print("Division: ", a / b)

# Input the first number
a = float(input("Insert the first number: "))

# Input the second number
b = float(input("Insert the second number: "))

calculator(a, b)

0 comments on commit 5621d42

Please sign in to comment.