Question: Write a program that continuously inputs numbers into in array of integers until the user enters a negative value. Each input value should be stored

Write a program that continuously inputs numbers into in array of integers until the user enters a negative value. Each input value should be stored at the beginning of the array ( index 0 ), so you have to shift the contents one index to the right before each input. Print the array everytime you input a value. You must implement separate functions for the input and printing the array. Use pass by reference

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!