#解答例
name=input("名前を教えて下さい")
waist=input("腹囲は?")
age=input("年齢は?")
print(name, "さんは腹囲", waist, "cmで年齢は",age, "才ですね。")
#ここが修正されています
if waist>=85 and age>=40:
print(name,"さん、内臓脂肪蓄積注意です")
else:
print(name,"さん、腹囲は問題ありません")
This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.
More than 3 years have passed since last update.
#解答例
name=input("名前を教えて下さい")
waist=input("腹囲は?")
age=input("年齢は?")
print(name, "さんは腹囲", waist, "cmで年齢は",age, "才ですね。")
#ここが修正されています
if waist>=85 and age>=40:
print(name,"さん、内臓脂肪蓄積注意です")
else:
print(name,"さん、腹囲は問題ありません")
Register as a new user and use Qiita more conveniently