/
funnumbers.py
29 lines (25 loc) · 1.04 KB
/
funnumbers.py
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
# This program calculates the sum of 2 numbers
print("THE SUM OF NUMBERS")
x = int(input("Dame el primer numero: "))
y = int(input("Dame el segundo numero: "))
print("el resultado es: ", x+y)
# This program calculates the difference of 2 numbers
print("THE DIFFERENCE OF NUMBERS")
x = int(input("Dame el primer numero: "))
y = int(input("Dame el segundo numero: "))
print("El resultado es: ", x-y)
# This program calculates the product of 2 numbers
print("THE PRODUCT OF NUMBERS")
x = int(input("Dame el primer numero: "))
y = int(input("Dame el segundo numero: "))
print("El resultado es: ", x*y)
# This program calculates the division between 2 numbers
print("THE DIVISION OF NUMBERS")
x = int(input("Dame el primer numero: "))
y = int(input("Dame el segundo numero: "))
print("El resultado es: ", x/y)
# This program calculates the remainder of the division between 2 numbers
print("THE REMAINDER OF NUMBERS")
x = int(input("Dame el primer numero: "))
y = int(input("Dame el segundo numero: "))
print("El resultado es: ", x%y)