This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % % Find the smallest element in vec (E), and the index at which it is % located (F). % % Sort the vector vec and store it in (G). % % vec2 is also a vector. Concatenate vec and vec2 in that order (H). % % Reverse vec2 and store the resulting vector in (I). % % Find the last element of vec2 (J). Do it without using the length % function. % % Starting with the first element, find every other element in vec2. That % is, find every element in vec2 that occurs at an odd-numbered index (K). % % Find all of the numbers in vec2 that are less than 5. (L)...
View Full Document
- Spring '08