public static void Main()
Console.WriteLine("Введите первый элемент");
int a1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Введите знаменатель прогрессии");
int step = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Введите число элементов");
int n = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Сумма членов прогрессии равна " + sum);