题目链接https://leetcode.cn/problems/water-bottles/description/
class Solution {
public int numWaterBottles(int numBottles, int numExchange) {
int bots = numBottles;
while(numBottles / numExchange > 0){
int a = numBottles / numExchange;
int b = numBottles % numExchange;
bots=a+bots;
numBottles = a+b;
}
return bots;
}
}