Question: Write a java program which asks user to enter a positive number n, if n is not positive user must try again. The program must

 Write a java program which asks user to enter a positive

Write a java program which asks user to enter a positive number n, if n is not positive user must try again. The program must then create an array T of n elements and fill it with random numbers between 1 and 100. Finally the program should display the sum of odd numbers in the array T and that are divisible by 5. 6pts

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!