#include
int main()
{
int n,i,a[10]={1,2,3};
printf(“enter element you want to add:”);
scanf(“%d”,&n);
for(i=9;i>=0;i–)
{
a[i]=a[i-1];
if(i==0)
a[i]=n;
// printf(“a[%d]=%d\n”,i,a[i]);
}
printf(“After adding element:\n”);
for(i=0;i<9;i++)
{
printf("a[%d]=%d\n",i,a[i]);
}
}