RC2019 – While-loop assignment – 1

Explanation: The while-loop repeats executing the code inside it, until the condition (counter < 10) is met. For each repetition, the counter is increased by 1.