0

犬の年齢を「犬」年で計算するプログラムを作成します。プログラムとユーザーの間のやり取りの例を次に示します。

あなたの犬は何歳ですか: 3

あなたの犬は「犬」年で21歳です。

私のコード:

age = input("How old is your dog: ")

dogage = age*7

print("Your dog is ",dogage," in dog years")
4

1 に答える 1