/*

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

* For multiples of 3 print “Fizz” instead of the number

* For the multiples of 5 print “Buzz”.

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

* 1

* 2

* Fizz

* 4

* Buzz

* Fizz

* 7

* 8

* Fizz

* Buzz

* 11

* Fizz

* 13

* 14

* FizzBuzz

*/

public void FizzBuzz ( )

{

string output ;

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

{

if ( i % 3 ) output = "Fizz" ;

if ( i % 5 ) output = "Buzz" ;

if ( i % 3 && i % 5 ) output = "FizzBuzz" ;

else output = i . ToString ( ) ;

Console . PrintLine ( output ) ;

}