View Single Post
  #1 (permalink)  
Old 06-10-2007, 05:25 PM
horhora
Posts: n/a
[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.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!