Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- """
- Calculadora que pide dos nros e imprime el resultado de las 4 operaciones
- básicos
- """
- from aritmetica import suma as s, resta as r
- from aritmetica import ingresar_numero
- while True:
- x = ingresar_numero()
- y = ingresar_numero()
- print(f"a + b = {s(x,y)}")
- print(f"a - b = {r(x,y)}")
- opcion = input("Presione cualquier tecla para continuar (o 'x' para salir): ")
- if opcion == "x":
- print("Gracias por usar este programa...")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement