¿La página no carga? Prueba haciendo clic aquí.
Placeholder

#9277
Idioma restringido

반복제어문1 - 자가진단 6-2 1s 32MB

Problemas

반복하여 실수 K를 입력받아 K가 0보다 큰 경우 positive를, 0보다 작은 경우 negative를 출력하다가 K가 0인 경우 종료하는 프로그램을 작성하시오.


Entrada

여러 줄에 걸쳐 실수 K가 주어진다. (-100 \le K \le 100 )

마지막 줄은 K=0이다.


Ejemplo

0.3
-3.5
0
positive
negative

Fuente

자기주도 파이썬 4판

Debes iniciar sesión para escribir código.