How can I determine the highest odd and even numbers here??
"package oddevn;
import java.util.*;
public class OddEvn {
public static void main(String[] args) {
Scanner con = new Scanner(System.in);
int number = 0;
int odd=1; /not used dunno where exactly to put this
int even=0; /not used dunno where exactly to put this
System.out.print("Enter number: ");
number = con.nextInt();
System.out.print("Enter number: ");
number = con.nextInt();
System.out.print("Enter number: ");
number = con.nextInt();
System.out.print("Enter number: ");
number = con.nextInt();
System.out.print("Enter number: ");
number = con.nextInt();
if (number % 2 == 0) {
System.out.println("Even number is :" + number);
} else {
System.out.println("Odd number is :" + number);
}
}
}"
please feedback.