Write a Java program named RandomNumbers that creates a single-dimensional array of int of size 20 and initialize its elements with 20 random integer numbers (their range must be between 1 and 100 inclusive.
For example, if the random numbers were stored in the array are:
83 48 89 66 40 94 31 31 12 45 45 87 10 24 78 2 28 31 52 46
Then the program should display:
The random numbers are:
There are 8 odd numbers
There are 12 even numbers
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here