Problem2252--while循环--买糖果

2252: while循环--买糖果

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

请用while循环编写以下程序:小明手上有50块钱,去超市购买糖,每盒糖果8块钱。小明每次进去只买一盒糖就出来。请编程打印输出他每次买糖的过程(每次买糖输出“buy a box of candy”),钱不够了输出“money is not enough”。


#sugar.py
money=50
price=8
while   ①
     money=money-price
      
print(③)






Input

Output

Sample Input Copy

Sample Output Copy

buy a box of candy
buy a box of candy
buy a box of candy
buy a box of candy
buy a box of candy
buy a box of candy
money is not enough

Source/Category