using System;
public class Program
{
public static void Main()
#region Introduction
//Hello and welcome to the FHLB Fuzz Buzz Coding Challenge.
//The point of this challenge is to test your ability to analyze existing code, troubleshoot errors, and assess your approach to programming.
//Please identify all of the errors in the below code.
#endregion
#region Instructions
//Create a collection with all numbers from 1 to 30
//For every number in the collection divisible by 3, output Fizz
//For every number in the collection divisible by 5, output Buzz
//For every number in the collection not divisible by neither 3 nor 5, output the number
#region CodingChallenge
int[] numbers = new int[30]; //{1,2,3,4,5,6,7,8,9,10};
for (int i = 0; i < numbers.Length; i++)
numbers[i] = i + 1;
}
foreach (int number in numbers)
Console.Write("Number " + number + ": ");
if (number % 3 == 0)
Console.Write("Fuzz");
else if (number % 5 == 0)
Console.Write("Buzz");
else
Console.Write(number);
Console.WriteLine("");