Lowest Value in an Array of Structs
mediumQuestion 411An array of four struct Item values holds the value fields 34, 12, 27, and 8. Find the smallest value and print it (see Expected Output).
Start by assuming the first item is the minimum, then compare the rest. There is no trailing newline.
Expected output
8= newline. No newline after the last line.
Hints4 available
Sign in to use hintsTopics
Structs
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (p, fori)
Your output
Run your code to see the output here...
Test cases
Run your code to see test case results.