public static void Main()
Console.WriteLine("Start:");
Console.WriteLine("End - fizzbuzz() standard\n");
Console.WriteLine("Start: fizzbuzzRange()");
Console.WriteLine("End - fizzbuzzRange()\n");
Divisor fizz = new Divisor();
Divisor buzz = new Divisor();
Divisor hello = new Divisor();
Divisor goodbye = new Divisor();
goodbye.phrase = "goodbye";
Divisor[] divisorArray = { fizz, buzz, hello, goodbye };
Console.WriteLine("Start: fizzbuzzExtensible()");
fizzbuzzExtensible(divisorArray, 1, 11 );
Console.WriteLine("End - fizzbuzzExtensible()\n");
public static void fizzbuzz( int n ){
public static void fizzbuzzRange( int low, int high){
for(int i = low; i <= high; i++){
public int number { get; set; }
public string phrase { get; set; }
public static void fizzbuzzExtensible( Divisor[] divisor, int low, int high){
for(int i = low; i <= high; i++){
for(int divCount = 0; divCount < divisor.Length; divCount++){
if (i % divisor[divCount].number == 0){
answ = answ + divisor[divCount].phrase;
if(answ == ""){answ = answ+i;}