The document describes a program that takes 10 numbers as input, then takes a search element as input and outputs the index where that number is found in the original 10 numbers. The program was given 10 numbers as input: 9, 4, 8, 2, 12, 15, 18, 21, 35, 33. It then took 18 as the search element and output that 18 was found at index 7.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
16 views
Linear Out
The document describes a program that takes 10 numbers as input, then takes a search element as input and outputs the index where that number is found in the original 10 numbers. The program was given 10 numbers as input: 9, 4, 8, 2, 12, 15, 18, 21, 35, 33. It then took 18 as the search element and output that 18 was found at index 7.