while(scanf("%d",n),n!=0) 代表连续输入直到输入0为止;;;;;; n前面是不是少个&