Array-promo

Question

Search for an element input by the user in a given (array for Java/ List for Python) using Linear search. 

				
					Enter size of list:5
Enter element in List:
1:10
2:20
3:30
4:40
5:50
Elements in given list:
[10, 20, 30, 40, 50]
Enter Element to be searched:30
Element is available at index: 3
				
			

Share code with your friends

Share on whatsapp
Share on facebook
Share on twitter
Share on telegram

Code

Coding Store

10-minute Stress-Buster Games

Leave a Reply

Your email address will not be published. Required fields are marked *