package chapter01;
import java.util.*;
public class inputsandprint {
public static void main(String[] args) {
System.out.println("请输入一些数字,且输入非数字确认结束你的数字输入");
Scanner input=new Scanner(System.in);
int s1=0;
int s2=0;
int num;
//num=input.nextInt();
while(input.hasNextInt() )
{
num=input.nextInt();
System.out.println(num);
if(num%2==0)
s1++;
else
s2++;
}
System.out.println("eve number is "+s1+"odd number is "+s2);
input.close();
}
}