Your program allows a user to enter array of 'n’ integers, where 'n' is entered by the user (n < 10). The program prints the odd numbers at the odd positions in descending order. The first row (where 'n' is entered) has position = 0. There is a newline character \n' between any two printed numbers. Below is an example when 'n' = 4: 4 1 7 OUTPUT: Press any key to continue

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question

Your program allows a user to enter array of 'n’ integers, where 'n' is entered by the user (n< 10).
The program prints the odd numbers at the odd positions in descending order.
The first row (where 'n' is entered) has position = 0.
There is a newline character \n' between any two printed numbers.
Below is an example when 'n' = 4:
1
7
OUTPUT:
Press any key to continue
Transcribed Image Text:Your program allows a user to enter array of 'n’ integers, where 'n' is entered by the user (n< 10). The program prints the odd numbers at the odd positions in descending order. The first row (where 'n' is entered) has position = 0. There is a newline character \n' between any two printed numbers. Below is an example when 'n' = 4: 1 7 OUTPUT: Press any key to continue
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT