using System.Collections.Generic;
public static void Main()
int p1=3, p2=5,s=3, n=100;
var fizzBuzzes = FizzBuzz(p1, p2,s, n);
TestFizzBuzzes( fizzBuzzes.ToList(), p1, p2,s,n );
foreach (string output in fizzBuzzes)
Console.WriteLine(output);
private static Boolean TestFizzBuzzes( List<string> fbList , int p1, int p2,int s, int n)
int test1 = p1, test2 = p2, test3 = p1*p2;
Console.WriteLine("s:"+s + " n:"+n+ " test1:"+test1 + " test2:"+test2 + " test3:" + test3);
var errorMessage = "I messed up.";
if (fbList[test1-1] == test1.ToString()) { Console.WriteLine(errorMessage); } else {Console.WriteLine(test1+" Okay");}
if (fbList[test2-1] == test2.ToString()) { Console.WriteLine(errorMessage); } else {Console.WriteLine(test2+" Okay");}
if (fbList[(test3)-1] == (test3).ToString()) { Console.WriteLine(errorMessage); } else {Console.WriteLine(test3+" Okay");}
Console.WriteLine("Total Items:"+fbList.Count() + " Prod:" + test3);
Console.WriteLine("s:"+s + " n:"+n+ " test1:"+test1 + " test2:"+test2 + " test3:" + test3+ " count:"+count);
private static IEnumerable<string> FizzBuzz(int p1, int p2, int s, int n)
var output = new List<string>();
for (int i = s; i <= n; i++)
output.Add("Fora Financial");
output.Add(i.ToString());