using System;
using System.Collections.Generic;
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
List<int> numbers = new List<int>(){1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30};
foreach(int number in numbers)
if(number % 3 == 0)
Console.Write("Fizz");
}
else if(number % 5 == 0)
Console.Write("Buzz");
else
Console.Write(number);