+ 2
int n; cin >> n; while (n >= 1) { cout << n << endl; if (n % 5 == 0) cout << "Beep" << endl; n--; } // Good Luck
10th Jan 2022, 8:06 PM
SoloProg
SoloProg - avatar
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
10th Jan 2022, 4:23 PM
Lisa
Lisa - avatar