suma = "suma"
resta = "resta"
multiplicacion = "multiplicacion"
division ="division"
respuesta=input("si quiere sumar inserte suma,para dividir inserte division,para restar inserte resta,para multiplicar inserte multiplicacion: ")
#resta
if resta == respuesta:
c = int(input())
d = int(input())
print (c-d)
elif suma == respuesta:
a = int(input())
b = int(input())
print (a+b)
elif division == respuesta:
e = int(input())
f = int(input())
print (e/f)
elif multiplicacion == respuesta:
g = int(input())
h = int(input())
print (g*h)
· Los códigos deben ir en etiquetas GeSHi
· Los asuntos deben ser puestos en el respectivo subforo
· Si no aclaras el lenguaje no ayudas!
· No haga doble post (el tema duplicado fue borrado)
>aquí las reglas del foro
-Engel Lex