题解 | #汽水瓶#
汽水瓶
http://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(true){
int num = sc.nextInt();
if(num == 0){
break;
}else{
System.out.println(num/2);
}
}
}
}
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(true){
int num = sc.nextInt();
if(num == 0){
break;
}else{
System.out.println(num/2);
}
}
}
}