Friday, February 4, 2011

if demo

//test EVEN OR ODD no
class Test
{
public static void main(String args[])
{
int x=23;
if(x%2==0)
System.out.println(x+" is EVEN");
else
System.out.println(x+" is ODD");
}
}

No comments:

Post a Comment