Please solution of this problème | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Please solution of this problème

FizzBuzz is a well known programming assignment, asked during interviews. 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". You need to change the code to skip the even numbers, so that the logic only applies to odd numbers in the range.

6th Apr 2021, 9:47 AM
Noureddine
Noureddine - avatar
1 Answer
+ 3
you need to state language and post attempt. stop this https://www.sololearn.com/Discuss/2747485/?ref=app
6th Apr 2021, 9:48 AM
Slick
Slick - avatar