A programmer is a person who passes as an exacting expert on the basis of being able to turn out, after innumerable punching, an infinite series of incomprehensive answers calculated with micrometric precisions from vague assumptions based on debatable figures taken from inconclusive documents and carried out on instruments of problematical accuracy by persons of dubious reliability and questionable mentality for the avowed purpose of annoying and confounding a hopelessly defenseless department that was unfortunate enough to ask for the information in the first place. Grid newsmagazine
Linear search is a method to find a particular item in an array. It compares each item with search item until it finds. The linear search performs on non-sorted items in the array.
Linear search is a simple search algorithm to find the items from a unsorted array. If the array sorted, the developer can use Binary search which search the item in less number of comparison.
Write a program to implement linear search.
List of items in the array: [12, 55, 45, 11, 23, 20, 17, 24, 9] Search '12' in the array using linear search Found in 1 Position!