+ 1

C++ countdown correct output flagged as wrong. Plz help

https://code.sololearn.com/chJzz1h6u8je/?ref=app

12th Apr 2022, 10:36 AM
jan
17 odpowiedzi
+ 4
Beep
12th Apr 2022, 10:45 AM
Simba
Simba - avatar
+ 2
Manav Roy dyslexia = dysfunctional ability to parse lexicographical information It is a known, but poorly-understood, reading disability that reportedly affects 20% of the population. It has no correlation to a person's intelligence, but can affect learning ability.
12th Apr 2022, 3:24 PM
Brian
Brian - avatar
+ 2
Thanks. Just to confirm. The original problem was a misspelling of the word "beep". That has been resolved. Thx everyone
12th Apr 2022, 6:41 PM
jan
+ 2
jan there is nothing wrong with having one or more attributes of dyslexia https://madebydyslexia.blog/2017/08/16/dyslexic-thinking-skills-explained/
13th Apr 2022, 5:38 PM
BroFar
BroFar - avatar
+ 1
Thanks, but I don't get it. I've written Beeb. Isn't that the same
12th Apr 2022, 2:18 PM
jan
+ 1
Thanks for your help
12th Apr 2022, 2:48 PM
jan
+ 1
Manav Roy Yes, they are both consonants 😁
12th Apr 2022, 2:48 PM
Paul K Sadler
Paul K Sadler - avatar
+ 1
Dyslexia? jan look closely 🧐 b = 🙃 p = 🙂
12th Apr 2022, 2:55 PM
Brian
Brian - avatar
+ 1
No worries. I am not really dyslexic, merely blind😅
12th Apr 2022, 4:34 PM
jan
+ 1
Manav Roy jan #include <iostream> using namespace std; int main() { int n; cin >> n; for(int k = 1; n>=k; n --){ cout << n << endl ; if(n % 5 == 0){ cout << "Beep\n"; } } //your code goes here return 0; }
13th Apr 2022, 5:54 PM
D Doyen
D Doyen - avatar
0
Crap. Starting to think I am dyslexic
12th Apr 2022, 2:48 PM
jan
0
#include <iostream> using namespace std; int main() { int n; cin >> n; int a =0; int x =0; while(a<n) { x = n-a; if(x%5==0) { cout << x<< endl; cout << "Beep" << endl; } else { cout << x<< endl; } a++; } //your code goes here return 0; }
12th Apr 2022, 6:19 PM
Jackie
Jackie - avatar