Java Blue
Java Blue

write a java program using blue j?
Write a Java program that prompts the user to enter an integer and displays whether the entered integer is even or odd. Hint: use the % operator to determine if the number is divisible by 2.
Scanner s = new Scanner(System.in);
int input = s.nextInt();
System.out.println("The number is " + (input % 2 == 0) ?
" Even" : " Odd");
![]() VERA BRADLEY JAVA BLUE WALLET US $10.75
|
![]() Small VERA BRADLEY Toggle Purse In JAVA BLUE US $15.00
|
![]() #11 VERA BRADLEY Button Tote **Java Blue** EUC US $15.00
|
![]() Vera Bradley Java Blue Cargo Sling US $45.00
|
![]() Vera Bradley Java Blue Double Handled Bucket Tote Bag US $27.50
|
![]() Vera Bradley On The Go Handbag in Java Blue - Gently Used - Retail $65 US $12.15
|
| Powered by phpBay Pro |
[phpzon]Java Blue, 10, Apparel[/phpzon]

US $10.75






















