兑换汽水瓶
实现代码:
public static void main(String[] args) {Scanner in = new Scanner(System.in);while (in.hasNextInt()) {int n = in.nextInt();if (n == 0) {break;}System.out.println(n / 2);}}
实现代码:
public static void main(String[] args) {Scanner in = new Scanner(System.in);while (in.hasNextInt()) {int n = in.nextInt();if (n == 0) {break;}System.out.println(n / 2);}}