- [Initialize the value of i] Set i=len
- Repeat for i=len down to pos[Shift the elements down by one position]Set a[i+1]=a[i][End of loop]
- [insert the elements at required position]Set a[pos]=num
- [Reset len] Set len= len+1
- Display the new list of arrays
- End
No comments:
Post a Comment