编程实现:每瓶汽水1元,两个空瓶能够置换一瓶汽水,如今有20元,最多能喝多少瓶汽水

#include <stdio.h> #include <stdlib.h> int main() { int money = 20; int count = 20; while (1) { if (money % 2 != 0) { count = count + money - 1;
相关文章
相关标签/搜索