Even Odd
/*TO Find whether the number is Even or Odd
*/
public class EvenOdd
{
public void main(int n)
{
if (n%2==0)
System.out.println("The number is even");
else
System.out.println("The number is odd");
}
}
No comments:
Post a Comment