Practice

Pass Count Only

EASYArrays5 marks

Read five integer marks, then a pass mark. Output how many of the five are greater than or equal to the pass mark. Output the count alone.

Input: Five marks, then the pass mark. Output: One integer.

Example:

Input:  40
        50
        49
        80
        100
        50
Output: 3

Sample Test Cases

Test 1: Pass mark 50
Inputs: 40, 50, 49, 80, 100, 50
Expected: 3
Test 2: None pass
Inputs: 10, 20, 30, 40, 50, 60
Expected: 0