Assignemnt #85 Fizz Buzz

Code

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

Picture of the output

Assignment 85