Загрузка данных


Console.WriteLine("--- Числа от 20 до 35 ---");
for (int i = 20; i <= 35; i++)
{
    Console.WriteLine(i);
}
Console.WriteLine("\n--- Квадраты от 10 до b (введите b > 10) ---");
int b = int.Parse(Console.ReadLine());
for (int i = 10; i <= b; i++)
{
    Console.WriteLine($"{i}^2 = {i * i}");
}
Console.WriteLine("\n--- Кубы от a до 50 (введите a < 50) ---");
int a = int.Parse(Console.ReadLine());
for (int i = a; i <= 50; i++)
{
    Console.WriteLine($"{i}^3 = {Math.Pow(i, 3)}");
}
Console.WriteLine("\n--- Числа от a до b ---");
Console.WriteLine("Введите a (большее):");
int a2 = int.Parse(Console.ReadLine());
Console.WriteLine("Введите b (меньшее):");
int b2 = int.Parse(Console.ReadLine());
for (int i = Math.Min(a2, b2); i <= Math.Max(a2, b2); i++)
{
    Console.WriteLine(i);
}

Console.ReadKey();