String Builder - Appending using for loop in C#

using System;
using System.Text;

namespace forgetCode
{    
    class program
    {        
        public static void Main()
        {
            int i;

            StringBuilder sb = new StringBuilder();

            for (i = 0; i < 10; i++)
            {
                sb.AppendLine(i.ToString());
            }

            Console.WriteLine(sb.ToString());
               
        }
    }
}


Output:
0
1
2
3
4
5
6
7
8
9