- using System;
- using System.IO;
- using System.Text;
- namespace forgetCode
- {
- class program1
- {
- static void Main(string[] args)
- {
- // Use StringBuilder for concatenation in tight loops.
- StringBuilder sb = new StringBuilder();
- for (int i = 0; i < 10; i++)
- {
- sb.AppendLine(i.ToString());
- }
- System.Console.WriteLine(sb.ToString());
- // Keep the console window open in debug mode.
- System.Console.WriteLine("Press any key to exit.");
- System.Console.ReadKey();
- }
- }
- }