6 % 3!=0 ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

6 % 3!=0 ?

FizzBuzz

18th Oct 2020, 7:19 PM
Václav Dostál
Václav Dostál - avatar
11 Answers
+ 6
If you're talking about one of the code coaches here, I think it only meant to display odd numbers...
18th Oct 2020, 7:51 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
No! 6%3==0
18th Oct 2020, 7:25 PM
Shadoff
Shadoff - avatar
+ 1
Bruh thats not what the statement is.. Guess it again
19th Oct 2020, 9:31 AM
El Roy Situmorang
0
Code coach pushes your code through different cases and look at output. All of them must match to expected ones
19th Oct 2020, 8:48 AM
Shadoff
Shadoff - avatar
- 1
And why in FizzBuzz no?
18th Oct 2020, 7:26 PM
Václav Dostál
Václav Dostál - avatar
- 1
I mean in FizzBuzz problem when n=6 it should print 'Solo'
18th Oct 2020, 7:30 PM
Václav Dostál
Václav Dostál - avatar
- 1
Yes, i am talking about this, great answer. Thanks Dik
18th Oct 2020, 7:55 PM
Václav Dostál
Václav Dostál - avatar
- 1
I have solved it.
18th Oct 2020, 7:57 PM
Václav Dostál
Václav Dostál - avatar
- 1
But my solution works only on PC not in code coach here. May be tomorrow.
18th Oct 2020, 8:10 PM
Václav Dostál
Václav Dostál - avatar
- 1
Guys, i have just solved it! So easy. As Kuba wrote: only odd numbres, so 6 is even. That means it was neccesary first control odd/even and then if is%3.
19th Oct 2020, 6:29 PM
Václav Dostál
Václav Dostál - avatar
- 1
False
20th Oct 2020, 7:10 PM
Maru
Maru - avatar