Am I missing something here? Do you just want to print a line of comma separated decreasing values like this:
int copies = 3;
int initialValue = 5000;
string separator = string.Empty;
for (int i=0;i <copies;i++)
{
Console.Write(separator);
Console.Write(initialValue - i);
if (separator.Length==0) separator = ",";
}
Console.WriteLine();
If you want an IEnumerable
so that you can use Linq to select the output. Try this
IEnumerable <int > numbers = Enumerable.Range(initialValue-copies+1, copies).Reverse();
IEnumerable <string > numberStrings = Enumerable.Range(initialValue , copies).Select((x,i) = > (x-(i*2)).ToString());
foreach (int num in numbers)
{
Console.WriteLine(num);
}
Console.WriteLine(string.Join(',', numberStrings));