C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include<stdio.h>
int main()
{ int i,n,k, item ,A[500];
printf("enter total numbers of element youwant to in array A"); printf("enter value of arrayA\n"); i = 1;
scanf("%d",&n);
while(i<=n)
{ scanf("%d",&A[i]);
i = i + 1;
}
printf("data stored in array A\n"); for ( i = 1; i <= n ;i++)
{ printf("%d\n",A[i]);
} printf("enter the location and new item that is in array"); scanf("%d%d",&k,&item);
i=n; while(i>=k)
{ A[i + 1] = A[i];
i = i - 1;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run