#22202: python解該減肥用whlie不用if


nancy10133@gmail.com (Nancy Chang)

School : No School
ID : 80990
IP address : [163.29.103.241]
Last Login :
2021-09-19 16:05:18
d068. 該減肥了! -- 板橋高中教學題 | From: [223.138.55.83] | Post Date : 2020-08-15 16:03

用ww變數存取int(input()),讀取公斤數

用while設定範圍,大於50

將w-1

印出

break

else其餘

印w

 

 

 
ZeroJudge Forum