Question: Write an algorithm, FizzBuzz(n), that prints the number from 1 to n. But, for multiples of three print Fizz instead of the number and for
Write an algorithm, FizzBuzz(n), that prints the number from 1 to n. But, for multiples of three print Fizz instead of the number and for multiples of five print Buzz. For number that are multiple of both three and five print FizzBuzz.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
