0

Hello help please i can't find where i made mistake(c++ 22 lesson)

#include <iostream> using namespace std; int main() { int n; cin >> n; for (int n; n>=1;n-=1){ if (n%5=0){ cout<<"Beep"}; cout<<n<<endl; } return 0; }

25th May 2021, 6:52 PM
Light
Light - avatar
2 ответов
+ 3
Semicolon must be after court<<"Beep" Not after { of if
25th May 2021, 6:54 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
+ 1
Don't use variable n in your for loop. for (int i=n; x>=1; i--)
25th May 2021, 6:55 PM
Babanyyaz
Babanyyaz - avatar