prog3_8.py

rate = float(input("1ドルは何円ですか?"))
dollar = int(input("何ドルを両替しますか?"))
yen = int(rate * dollar)
print(yen, "円になります")

# プログラム3-8(ドルから円へ両替)