///Name: Mutsu Osoegawa ///Period: 7 ///Project Name: Fizz Buzz ///File Name: 2/16/2016 ///Date: 2/16/2016 public class FizzBuzz { public static void main( String[] args ) { for ( int x = 1; 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 ); } } } }