Module: (C++) Data processing in a loop. Anchoring

Problem

6
/9

Data flow processing - 2

Problem

Given a non-empty sequence of integers ending in zero. Zero is not included in the sequence, it serves as a sign of its end. Find the number of numbers in the sequence that are greater than the first number entered.

Input
The input is the numbers of the sequence, one number per line. Zero - a sign of the end of input.