CJCoding With Joseph
15free / daySign inCreate account

Lowest Value in an Array of Structs

An 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
Topics:
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.