/*

* Write a method that prints the numbers from 1 to 100 (inclusively).

* For numbers that are ONLY multiples of 3 print “Fizz” instead of the number.

* For numbers that are ONLY multiples of 5 print “Buzz”.

* For numbers which are multiples of BOTH 3 and 5 print “FizzBuzz”."

* For numbers not covered by the above, print the number in question.

*

* A subset example is below for your convenience:

*

* 1

* 2

* Fizz

* 4

* Buzz

* Fizz

* 7

* 8

* Fizz

* Buzz

* 11

* Fizz

* 13

* 14

* FizzBuzz

*/

for ( i = 1 ; i <= 100 ; i ++ )

{

if ( i % 3 == 0 ) { System . out . println ( "fizz" ) ; }

else { System . out . println ( "Number" + i ) ; }

}

for ( i = 1 ; i <= 100 ; i ++ )

{

if ( i % 5 == 0 ) { System . out . println ( "Buzz" ) ; }

else { System . out . println ( "Number" + i ) ; }

}

for ( i = 1 ; i <= 100 ; i ++ )

{

if ( i % 3 == 0 && i % 5 == 0 ) { System . out . println ( "FizzBuzz" ) ; }

else { System . out . println ( "Number" + i ) ; }