QUESTION DESCRIPTION
A little boy Vicky received a gift from his Nephew. He found
numbers written in building blocks arranged in an array. His friend
Tom wishes to insert an element in a specified position in the
building block. Your task is to write a code to insert an element into
the building blocks in a specified position.
Input:
Input should contain the maximum number of building blocks n
And input the integers up to the limit n. Input the element to be
inserted and mention the position.
Output:
It should print the arranged elements in the blocks after the
insertion of that element in the specified position.
TEST CASE 1
INPUT
4
1 2 3 4
8.
2
OUTPUT
18 2 3 4
Answers
Answered by
0
Answer:
Explanation:
Similar questions