Skip to content

Commit

Permalink
Created a new file named calculator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuExe14 committed Oct 30, 2023
1 parent eb6fa61 commit ea01774
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/calculator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
x = input("Enter the first number: ")
y = input("Enter the second number: ")

print("\nThe sum is:",int(x) + int(y))
print("The difference is:", int(x)- int(y))
print("The multiplication is: ", int(x) * int(y))
print("The division is: ", float(x)/float(y))
9 changes: 9 additions & 0 deletions tests/tempCodeRunnerFile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
print("Insert the first number:")
x:int = input()

print("Insert the second number")
y = input()

z:int = x + y

print("Sum is", z )

0 comments on commit ea01774

Please sign in to comment.