喝汽水,1瓶汽水1元,2個空瓶能夠換一瓶汽水,給20元,能夠多少汽水。編程實現

用通常方式: 代碼實現web int main() { int total = 0; int kps = 0; int ys = 0; printf("請輸入錢數:"); scanf("%d", &total); kps = total; while (kps >= 1) { kps += ys; t
相關文章
相關標籤/搜索