본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬]4714번 Lunacy

by 현장 2021. 4. 28.

-코드

while 1:
    n = float(input())
    if n == -1:
        break
    print("Objects weighing %.2f on Earth will weigh %.2f on the moon." % (n, n * 0.167))