Question: Problem2 Write a program that display the position of a given element in an array. You should print the index (i.e. the position) of the

Problem2 Write a program that display the position of a given element in an array. You should print the index (i.e. the position) of the element. If the element appears more than one time than you should print all its positions. The size of the array should be entered by the user. If the element does not occur then you should display element not found. Samplel: Enter the size of the array: 5 Enter an array of size 5: 44 5 13 44 67 Enter the element to find: 44 44 is found at position 0 44 is found at position 3 I Sample2: Enter the size of the array: 4 Enter an array of size 4: 12150 17 20 Enter the element: 18 18 is not found
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
