Question: java. Make a class FizzBuzz that goes throught the numbers from 1 to 30, if the number is divisible by 3 print Fizz, if it

java.

Make a class FizzBuzz that goes throught the numbers from 1 to 30, if the number is divisible by 3 print "Fizz", if it is divisible by 5 print "Buzz". If the number is divisible by 15 print "FizzBuzz".

The output should look like this:

java. Make a class FizzBuzz that goes throught the numbers from 1

3 Fizz 5 Buzz 6 Fizz 9 Fizz 10 Buzz 12 Fizz 15 Fizz Buzz 18 Fizz 20 Buzz 21 Fizz 24 Fizz 25 Buzz 27 Fizz 30 Fizz Buzz

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!