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
4 Réponses
+ 5
Beep with capital B.
+ 3
cout<<"beep"<<std::endl; 👎
cout<<"Beep"<<endl; 👍
0
i can't figure out please help me and explain to me what's wrong?
0
write "Beep and you are using namespace std so remove std::