public static void Main()
Console.WriteLine("Введите скорость первого автомобиля (км/ч)");
int V1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Введите скорость второго автомобиля (км/ч)");
int V2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Введите расстояние между автомобилями (км)");
int S = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Введите прошедшее время (ч)");
int T = Convert.ToInt32(Console.ReadLine());
int Result = S + V1 * T + V2 * T;
Console.WriteLine("Между автомобилями (км):");
Console.WriteLine(Result);