Está en la página 1de 2

2/8/2020 Untitled3.

ipynb - Colaboratory

EJERCICIO N°3

INICIO

INDICAR SI EL NUMERO ES POSITIVO ,NEGATIVO O CERO

nom=(input("Ingrese su nombre"))
print("Bienvenida: ",nom)

Ingrese su nombre Camila


Bienvenida: Camila

hallar si el numero es positivo, negativo o cero

n=int(input("Porfavor ingresa un numero\n"))


if(n==0):
print(nom,"el numero " + str(n) + " cero")
else:
if(n>0):
print(nom,"el numero " + str(n) + " es positivo")
else:
print(nom,"el numero " + str(n) + " es negativo")

Porfavor ingresa un numero


12
Camila el numero 12 es positivo

n=int(input("Porfavor ingresa un numero\n"))


if(n==0):
print(nom,"el numero " + str(n) + " cero")
else:
if(n>0):
print(nom,"el numero " + str(n) + " es positivo")
else:
print(nom,"el numero " + str(n) + " es negativo")

Porfavor ingresa un numero


-12
Camila el numero -12 es negativo

n=int(input("Porfavor ingresa un numero\n"))


if(n==0):
print(nom,"el numero " + str(n) + " cero")
else:
if(n>0):
print(nom "el numero " + str(n) + " es positivo")
https://colab.research.google.com/drive/1F4zTfQYcQL9e6O6kyf7BvrN4RWW0_YRt#scrollTo=LsC-0cGy5Sse&printMode=true 1/2
2/8/2020 Untitled3.ipynb - Colaboratory
print(nom, el numero + str(n) + es positivo )
else:
print(nom,"el numero " + str(n) + " es negativo")

Porfavor ingresa un numero


0
Camila el numero 0 cero

FIN

https://colab.research.google.com/drive/1F4zTfQYcQL9e6O6kyf7BvrN4RWW0_YRt#scrollTo=LsC-0cGy5Sse&printMode=true 2/2

También podría gustarte