The same old FizzBuzz
Practice
3.3 (3 votes)
Problem
78% Success 175 Attempts 1s Time Limit 256MB Memory 1024 KB Max Code

Write a program that prints the numbers from x to y. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".

Input
Space separated x and y, where y>x

Output
Print the space separated values in a single string

Input Constraint

1 <= x <= 100
1 <= y <= 100

Note: The program should be written using List Comprehension in Python.

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:30
1 votes
Tags:
CombinatoricsDynamic ProgrammingMediumCRT
Points:30
Tags:
MathematicsMediumApprovedFactorization
Points:20
594 votes
Tags:
Greatest common divisorHiringEasyMathematicsOpenApproved
Editorial

No editorial available for this problem.