85. FizzBuzz

Code

///Name: Tyler Hart
///Period:5
///Project Name: FizzBuzz
///File Name:FizzBuzz.java
///02/27/2016


public class FizzBuzz
{
    public static void main(String[] args)
    {
        int n = 1;
        do 
        {
            if (n %3 == 0)
            {
                System.out.print("Fizz");
                if (n % 5 ==0)
                {
                System.out.print("Buzz");
                }
            }
            else if(n % 5 ==0)
                System.out.print("Buzz");
            else
            {
            System.out.print(n);
            }
            
            System.out.println("");
            n ++;
        }while(n<=100);
    } 
}


    

Picture of the output