假设有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
相关文章
相关标签/搜索