0

Countdown project

Got the wanted output but still getting it as not correct. Here’s the code #include <iostream> using namespace std; int main() { int n; cin >> n; //your code goes here for(n;n>=1;n--){ cout<<n<<endl; if(n%5==0){ cout<<"beep"<<endl; } } return 0; }

1st Jan 2022, 7:44 AM
Mustafa Mansuor
Mustafa Mansuor - avatar
2 Réponses
+ 8
b should be uppercase in "Beep"
1st Jan 2022, 7:46 AM
Simba
Simba - avatar
+ 1
Ohh yeah didnt realize that mattered. Thanks
1st Jan 2022, 7:47 AM
Mustafa Mansuor
Mustafa Mansuor - avatar