Question: Write a program that reads an array of 20 integers with an appropriate prompt, stores it, and then prints in three formats: 1.One integer per
Write a program that reads an array of 20 integers with an appropriate prompt, stores it, and then prints in three formats:
1.One integer per line
2.All integers in a single line separated by spaces
3.All in integers in a single line in the reverse order separated by spaces, Your program also requests entering a positive integer n <= 20 and then prints the 20 integers, n integers per line with separated by space.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
