| [SOLVED] java program....? 4.(programming) Write a program OddElements that creates an int array containing the odd integers from 51 to 99 and then prints the array elements with 5 elements per line. So the output should be:
51 53 55 57 59
61 63 65 67 69
71 73 75 77 79
81 83 85 87 89
91 93 95 97 99
You must use one for loop to initialize (populate) the array and another for loop to print the elements. |