Please check below code:
using System;
public class Program
{
public static void Main()
{
int noOfMonth = 5;
DateTime currentDate = DateTime.Now;
for(int i = 0; i < noOfMonth; i++)
{
Console.WriteLine(currentDate.AddMonths(i).ToString("yyyyMM"));
}
}
}
Please google first before asking such question.