0
What's wrong with this code it gave the right output but they didn't accept it
#include <iostream> using namespace std; int main() { int n; cin >> n; while(n>=1) { cout<<n<<endl; if(n%5==0) { cout<<"beep"<<endl; } n--; } return 0; }
4 Answers
+ 2
The worst enemy in coding is mistyping, and you can sometimes use a hell of a time to locate a letter that should have been uppercase or a wrong number in calculations that causes a wrong output.
+ 8
You are supposed to print "Beep" with a capital 'B', that's all.
0
Ohh i spent 20 minutes to find the mistakeđ€Šđ thank you so much