Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  good
Language: JAVA
Code:
import java.util.Scanner;
public class 2A1-3ITLabFinal1
{
      public static void main(String[]args)
   {
      int x;
      System.out.printIn("Enter an Number ODD or EVEN ");
      Scanner in = new Scanner(System.in);
      System.out.print("Number:");
      x = in.nextInt();
 
      if ( x % 2 == 0 )
         System.out.println("Even Number");
      else
         System.out.println("Odd Number");
   }
}
Comments: