Question: Write a program that will create an array of 5 integers and fill the array with values given by the user. The program should

Write a program that will create an array of 5 integers and 

Write a program that will create an array of 5 integers and fill the array with values given by the user. The program should display all the numbers entered by the user and test if all the numbers are odd or all the numbers are even or if the numbers are a mix of even and odd values. Sample run 1: Enter 10 integers: 6 10 12 4 2 The enter numbers from last to the first is 2 4 12 10 6 All the numbers are even Sample run 2: Enter 10 integers: 3 7 9 13 15 The enter numbers from last to the first is 15 13 9 7 3 All the numbers are odd Sample run 2: Enter 10 integers: 3 6 8 12 15 The enter numbers from last to the first is 15 12 8 6 3 The numbers are a mix of odd and even values

Step by Step Solution

3.33 Rating (144 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner public class ArrayInputExample1 public static ... View full answer

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

Document Format (2 attachments)

PDF file Icon

636382fc120bd_238489.pdf

180 KBs PDF File

Word file Icon

636382fc120bd_238489.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!