using System;
public class Program
{
public static void Main()
Console.WriteLine("Введіть число A: ");
int A = int.Parse(Console.ReadLine());
Console.WriteLine("Введіть число B: ");
int B = int.Parse(Console.ReadLine());
int C = 0;
for (int i = A; i <= B; i++)
C = C + i;
Console.WriteLine("Сума = " + C);
}