← Back to Structs
Question 409
Count Passing Students
Count Passing Students
An array of fivestruct Studentvalues holds the scores 55, 60, 72, 40, and 90. Count how many students have ascoreof 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 eachscore. There is no trailing newline.
Expected Output:
3= newline. No newline after the last line.
Hints2 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.