Assignment #85

Code

    
    ///Name: Cody Swain
    ///Period: 6
    ///Project Name: FizzBuzz
    ///File Name: FizzBuzz.java
    ///Date: 1/13/16
    
    
    public class FizzBuzz
    {
        public static void main( String[] args )
        {
            for ( int x = 1; x <= 100; x++ )
            {
                if ( x%3 == 0 )
                {
                    System.out.println( "Fizz" );
                }
                else if ( x%5 == 0 )
                {
                    System.out.println( "Buzz" );
                }
                else 
                {
                    System.out.println( x );
                }
            }
        }
    }

    

Picture of the output

Assignment 85