You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Write a program that prints the numbers from 1 to 100.For mutliples of 3 , print "Fizz"; for multiples of 5, print "Buzz"; and for numbers that are multiples of both 3 and 5, print "FizzBuzz".
*/
public class FizzBuzz {
public static void main(String[] args) {
// print the numbers from 1 to 100
// While checking if the number is divisible by 3 or 5 then printing the