键盘录入数字,要求满足1-20之间的数字,如果满足就打印,并记录个数,打印满十个就结束
t=0 while(1): x=int(input()) if x>=1and x<=20: t+=1 print(x) if(t==10): break