[Solved] 21 Code Project - What is wrong with my code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

[Solved] 21 Code Project - What is wrong with my code?

Hey!! 🤓 I don’t know, what is wrong with my code.🥲 I don’t get it… My output is the same as the expected output with one mistake: I have an empty line first… 😖 Thanks in advance! 🤝 My code: […] while (n >= 1){ cout << n << endl; if (n % 5 == 0){ cout << "beep" << endl; } n--; } return 0; }

9th Mar 2022, 6:39 PM
Jeremy
Jeremy  - avatar
3 Answers
0
G'day Jeremy congratulations on getting the challenge done. Did you just have to adjust your output to have correct capitalisation? Would you do a bit of housekeeping, edit your original post to start with [Solved]? Have you found the Q&A search bar (it is the magnifying glass icon at the top of the discuss screen)? Did you know you can link other Q&A posts or SoloLearn code bits (use the plus icon)? https://www.sololearn.com/discuss/1316935/?ref=app
9th Mar 2022, 7:36 PM
HungryTradie
HungryTradie - avatar
+ 5
Jeremy , the output should start with an upper case letter: "Beep"
9th Mar 2022, 7:11 PM
Lothar
Lothar - avatar
+ 2
Lothar Thank you!! 😱🤝 Well… 😂
9th Mar 2022, 7:14 PM
Jeremy
Jeremy  - avatar