解答

✨ 最佳解答 ✨

問1
score = int(input())
if score >= 90:
print("がんばりました")
elif score >=70:
print("その調子でOK")
elif score >= 30:
print("もう少しです")
else:
print("赤点でした")

問2
score = int(input())
if score == 100:
print("素晴らしい")
elif score >= 90:
print("がんばりました")
elif score >=70:
print("その調子でOK")
elif score >= 30:
print("もう少しです")
else:
print("赤点でした")

これでいけると思います。

留言
您的問題解決了嗎?