CODE DRILL 1 · RUN ONLY
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Use the fixed storage [4, 2, 7, 1, _] with n = 4 to insert 9 at 1-based position x = 3. Shift elements backward from the occupied end, then print the final array and updated n.
OUTPUT
Sample[4, 2, 9, 7, 1] n = 5
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.