+ 4

I don't understand this question please

The given code solves the FizzBuzz problem and uses the words "Solo" and "Learn" instead of "Fizz" and "Buzz". It takes an input n and outputs the numbers from 1 to n. For each multiple of 3, print "Solo" instead of the number. For each multiple of 5, prints "Learn" instead of the number. For numbers which are multiples of both 3 and 5, output "SoloLearn". Which output is ok for Input 12 First 1 Solo Learn 7 Solo 11 Second 1 2 Solo 4 Learn Solo 7 8 Solo Learn 11 Solo I think the second one is ok.

27th Sep 2021, 1:28 AM
Humaira
Humaira - avatar
4 odpowiedzi
+ 5
This is sololearn code project I solved as the second one but when see the expected output was like first one.
27th Sep 2021, 5:30 AM
Humaira
Humaira - avatar
+ 1
Hi Humaira! Your first output doesn't print even numbers and the last one should be Solo while the second one seems fine. But, what you didn't understand here?
27th Sep 2021, 1:51 AM
Python Learner
Python Learner - avatar
+ 1
Humaira share your code, so we can see the code and find what's wrong
27th Sep 2021, 6:06 AM
Rishi
Rishi - avatar
0
Nummer 15 would be intresting. If it gives: SoloLearn . . 11 Solo 13 14 SoloLearn 16 . . Then it should be ok.
27th Sep 2021, 9:31 AM
Coding Cat
Coding Cat - avatar