小練習

喝汽水,1瓶汽水1元,2個空瓶能夠換一瓶汽水,給20元,能夠多少汽水。編程實現。web #include<stdio.h> int main(void) { int money = 20; int totol = money; int empty = money; while(empty>1) { totol += totol + empty/2;
相關文章
相關標籤/搜索