+ 2
int n;
cin >> n;
while (n >= 1) {
cout << n << endl;
if (n % 5 == 0) cout << "Beep" << endl;
n--;
}
// Good Luck
0
What is your question? Please ask it directly.
If you mean the task on the sololearn course: do not output "input..." and check if n is a multiple of 5 before you decrease n