FizzBuzz Range

JavaScript Easy 2 views
Back to Questions
Next Check Balanced Brackets Medium N

Problem Description

Given two integers L and R, print FizzBuzz style output for all numbers from L to R (inclusive). For multiples of 3 print Fizz, multiples of 5 print Buzz, multiples of both print FizzBuzz, else print the number.

Input Format

One line: L R.

Output Format

R-L+1 lines.

Sample Test Case

Input:
1 6
Output:
1 2 Fizz 4 Buzz Fizz

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next