var fb = new List<int> {1, 1};for (int i=0; i<10; i++) { fb.Add(fb[i]+fb[i+1]);}int last=fb.Last();foreach(var n in fb) { var sep="; "; if (n == last) { sep=""; } Console.Write($"{n}{sep}");}