0

can you please check if this wrong code?

#include <iostream> using namespace std; int main() { int n; cin >> n; for(int i = n; i > 0; i--) { cout<<i<<std::endl; if(i%5==0) { cout<<"beep"<<std::endl; } } //your code goes here return 0; } i wrote this code and the compiler says it's wrong code

4th Aug 2021, 3:01 PM
kana
4 Answers
+ 5
Beep with capital B.
4th Aug 2021, 3:12 PM
JaScript
JaScript - avatar
+ 3
cout<<"beep"<<std::endl; 👎 cout<<"Beep"<<endl; 👍
4th Aug 2021, 3:22 PM
Solo
Solo - avatar
0
i can't figure out please help me and explain to me what's wrong?
4th Aug 2021, 3:02 PM
kana
0
write "Beep and you are using namespace std so remove std::
4th Aug 2021, 9:43 PM
Karol Winkel
Karol Winkel - avatar