Write a program that asks the user to type 4 integers in an array. The program must insert 3 at the index position 1 , and then shift each element down and drop off the last element. The program must then write the final array. Input: enter 4 integer values: 1 3 4 5 output: resultant array is; 1 3 3 4 input: enter 4 integer values: 11 32 43 54 output: resultant array is 11 3 32 43
Answers
Answered by
0
integers in an array. The program must insert 3 at the index position 1 , and then shift each element down and drop off the last element. The program must then write the final array. Input: enter 4 integer values: 1 3 4 5 output: resultant array is; 1 3 3 4 input: enter 4 integer
Similar questions
India Languages,
6 months ago
Math,
6 months ago
Math,
6 months ago
Computer Science,
11 months ago
Biology,
11 months ago
Math,
1 year ago