编写一个算法,接受用户输入的温度,并建议用户穿夹克

write an algorithm that will accept a temperature as input from a user, and advise the user to wear a jacket

编写一个算法,接受用户输入的温度,并建议用户穿夹克。根据温度,算法应该告诉用户带一件厚外套(低于 32 度)、轻外套(32 到 50 度之间),或者根本不带外套。

1. read (temperature)

2. if (temperature<32):
   print("bring heavy jacket")
3. else if f (32<temperature<50):
   print("bring light jacket")
4. else :
   print("no jacket")

你没有提到任何语言,它很简单。就像你的解释一样简单“”