CJCoding With Joseph
15free / daySign inCreate account

Count Passing Students

An array of five struct Student values holds the scores 55, 60, 72, 40, and 90. Count how many students have a score of 60 or higher (a passing score) and print that count (see Expected Output).

Only 60, 72, and 90 pass. Loop through the array and compare each score. There is no trailing newline.

Expected Output:

3

= newline. No newline after the last line.

Hints2 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.