Advertisement
Guest User

Franco_ejercicio02

a guest
Mar 30th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. # 2. Pedir dos números y decir si son iguales o no.
  2. numero1 = float(input('Por favor, introduzca el primer número:'))
  3. numero2 = float(input('Por favor, introduzca el segundo número:'))
  4. if numero1==numero2:
  5.     print('Ambos números son iguales'
  6. else:
  7.     print('Los números no son iguales')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement