Assignemnt #85 Qwetrty

Code

    /// Name: Caelan Dorstad
    /// Period: 6
    /// Program Name: qwerty
    /// File Name: qwerty.java
    /// Date Finished: 2/24/2016
    
    public class qwerty{
    public static void main(String[] args){
        for (int n=0; n <= 100; n++){
            
            if ((n+1)% 3 ==0) System.out.print("FIZZ  ");
            if ((n+1) % 5 ==0 ) System.out.print("BUZZ");
            if (!((n+1)%3==0) && !((n+1)%5==0)) System.out.print((n+1));
                
                System.out.print("\n");
        }
    }
}
            
                               

    

Picture of the output

Assignment 10