假設有50瓶飲料,喝完3個空瓶能夠換一瓶飲料,依次類推,請問總共喝了多少瓶飲料???

package test; /** * @author wyl * @time 2018年8月15日下午6:59:59 */ public class Drink { public static void main(String[] args) { // TODO Auto-generated method stub int sum=0; int empty=1; f
相關文章
相關標籤/搜索