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; }
2 Antworten
+ 3
Semicolon must be after
court<<"Beep"
Not after { of if
+ 1
Don't use variable n in your for loop.
for (int i=n; x>=1; i--)