โ Back to Structs
Question 339
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: 3 Only 60, 72, and 90 pass. Loop through the array and compare eachscore. There is no trailing newline.
Expected Output:
3
Topics:
Structs
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท 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.