0

Count down project help

Okay so this code produces the exact same output as test 1, 2, 4 (I can’t see 4 btw), and test 3 and 5 consider the output incorrect. I’m not sure what’s wrong with my code. Please help! Thanks! Here’s my code: https://code.sololearn.com/c61e2wuFoWD6/?ref=app

5th Jun 2021, 12:07 AM
Muhammad Hamza
5 ответов
+ 3
Change this; cout << n ; if (n != 1) cout << endl; To; cout << n << endl; And remove the space here; cout << "Beep\n";
5th Jun 2021, 12:17 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
not exactly (I guess none test successed): + you doesn't put a new line char after "1" (end of output) + you put an extra space after "Beep" (just before new line char)
5th Jun 2021, 12:17 AM
visph
visph - avatar
0
where can i find the test input and output?
5th Jun 2021, 12:41 AM
durian
durian - avatar
0
Yep, removing the space after beep solved the problem. Thanks!
5th Jun 2021, 12:49 AM
Muhammad Hamza
0
Lily Mea Its when you go on the actual project at the end of the “If and loops” chapter
5th Jun 2021, 12:51 AM
Muhammad Hamza