Question is | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Question is

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". Sample Input: 12 Sample Output: 12 11 10 Beep 9 8 7 6 5 Beep 4 3 2 1

9th Sep 2021, 7:25 PM
verma music
verma music - avatar
2 Answers
+ 2
You can write down your code in code playground, and share link with us...So we can help you.
9th Sep 2021, 7:40 PM
Rupali Haldiya
Rupali Haldiya - avatar
+ 1
I found your public code in your profile. https://code.sololearn.com/cCOXr1izjUkC/?ref=app 1) The program is missing a declaration for n. 2) It is missing a way to input the value for n. 3) It has an extra closing brace. 4) It has an extra return 0; After I fixed these problems temporarily, the program seemed to work perfectly.
10th Sep 2021, 3:50 AM
Brian
Brian - avatar