0
good afternoon, I wrote the code, but the project does not count.
3 odpowiedzi
+ 3
Try this.
1. The second if statement is unnecessary.
2. Incremention should be at the last line of the while loop
Update me if it is still not solved. Thanks
https://code.sololearn.com/cnnw4T4qwrHy/?ref=app
+ 2
Dmitry Try this :
while(n>0)
{
cout<<n<<endl;
if(n%5==0)
cout<<"Beep"<<endl;
--n;
}
+ 1
Thank you very much!