Q1. Write a program for: insert(LA, K, ITEM )
1. K is not out of range
2. Item must be positive 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 operation, and prints the
message 'ITEM’ at index k is greater than user's entered ‘ITEM'
Comments
Leave a comment