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
5 Respostas
+ 3
Change this;
cout << n ;
if (n != 1)
cout << endl;
To;
cout << n << endl;
And remove the space here;
cout << "Beep\n";
+ 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)
0
where can i find the test input and output?
0
Yep, removing the space after beep solved the problem.
Thanks!
0
Lily Mea Its when you go on the actual project at the end of the âIf and loopsâ chapter