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:

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
Get step-by-step solutions from verified subject matter experts
