标签:imp str ann 学习java == int() 基础 port sys
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in =new Scanner(System.in);
int x=0;
int y=0;
int number=0;
do {
number=in.nextInt();
if(number%2==0)
{
x++;
}if(number%2==1) {
y++;
}
}while(number!=-1);
System.out.println(y+" "+x);
}
}
标签:imp str ann 学习java == int() 基础 port sys
原文地址:http://www.cnblogs.com/2201192792com/p/7674824.html