static void Main(string[] args) { int kackez; string isim; Console.Write("ne yazayım"); isim= Console.ReadLine();
Console.Write("kaç kez yazayım"); kackez = Convert.ToInt32(Console.ReadLine()); for (int i = 1; i <= kackez; i++) { if (i % 2 == 0) {Console.ForegroundColor = ConsoleColor.Red; } else {Console.ForegroundColor = ConsoleColor.White; } Console.WriteLine(i + " - " +isim ); } Console.ReadKey();