喷油嘴 构造

来源:百度知道 编辑:UC知道 时间:2024/05/15 17:23:15

public class Wb5
{
public static void main(String[] ags)
{
int[] a = new int[5];
int i,j;
System.out.println("请输入一个5位正整数,从万位开始输~");
for(i = 4; i >=0; i --)
{
a[i] = Integer.parseInt(javax.swing.JOptionPane.showInputDialog(null, "Input value here"));

}
for(j=0;j<=a.length-1;j++)
{
if(a[j] % 2 == 0)
{
System.out.println(a[j]+" is Even~~");
}
else
{
System.out.println(a[j]+" is Odd~~");
}
}

}
}