0
Where did i make wrong
You need to make a countdown app. Given a number N as input, output numbers from N to 1 on separate lines. Also, when the current countdown number is a multiple of 5, the app should output "Beep". and that is my code: the output is correct but it wont let me pass #include <iostream> using namespace std; int main() { int n; int y; cin >> n; while(n>=1){ cout<<n<< endl; y=n; y=y%5; switch (y) { case(0): cout<<"Beeb"<<endl; break; } n--; } //your code goes here return 0; }
2 Réponses
+ 4
Beep. Spelling mistake only
0
thank you