public static void Main()
Console.WriteLine("первый элемент");
a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("знаменатель прогрессии");
b = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("число элементов");
n = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("прогрессия равна " + Convert.ToString(sum));