Countdown quest C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Countdown quest C++

I don't know which the problem is. The two not hidden cases both are the same as my answer, but the compiler tells me they are not. Is there any problem in my code or is the compiler wrong? Here the task: You need to make a countdown app. Given a number N as input, output numbers from N to 1 on separate lines. Also, when the current countdown number is a multiple of 5, the app should output "Beep". I'll pin there the playground: https://code.sololearn.com/cXGqsvcfHyF6 Here one prob. N: 15 Here the answer to that N: 15 Beep 14 13 12 11 10 Beep 9 8 7 6 5 Beep 4 3 2 1

17th Nov 2021, 4:22 PM
Matteo Cervini
Matteo Cervini - avatar
2 Answers
+ 2
Use capital B in beep
17th Nov 2021, 4:51 PM
Arun Ruban SJ
Arun Ruban SJ - avatar
+ 1
OH, ok thanks
17th Nov 2021, 4:54 PM
Matteo Cervini
Matteo Cervini - avatar