Write a program for: insert(LA, K, ITEM )
1. K is not out of range
2. Item must be posive integer
3. Check user's entered ITEM at index K is greater or less than in an array at index K, if less than insert it into the array otherwise not perform any operaon, and prints the message 'ITEM’ at index k is greater than user's entered ‘ITEM'
Comments
Leave a comment