0

I have a problem with my code n idk what's it

#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i=n ; i>=0;i-- ) { cout<<i<<endl; if ( i ℅ 5 == 0 ) { cout<<"Beeb\n"; } } return 0; }

11th Jan 2022, 9:21 AM
Mohamed Darwesh
Mohamed Darwesh - avatar
2 Answers
+ 8
> it should be "%" instead of "℅" > If you are solving countdown problem of C++ course then It should be "Beep" not "Beeb" > Also i>=1 not i>=0 https://code.sololearn.com/cu42VlBSa42z/?ref=app
11th Jan 2022, 9:35 AM
Atul
Atul - avatar
+ 2
ThanksđŸŒč
11th Jan 2022, 9:52 AM
Mohamed Darwesh
Mohamed Darwesh - avatar