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


using System;

class Program
{
    static void Main()
    {
        Console.Write("Введите a: ");
        double a = Convert.ToDouble(Console.ReadLine());
        Console.Write("Введите b: ");
        double b = Convert.ToDouble(Console.ReadLine());
        Console.Write("Введите шаг h: ");
        double h = Convert.ToDouble(Console.ReadLine());

        Console.WriteLine("\n x \t\t F(x) = tg(x)");
        Console.WriteLine("--------------------------");

        for (double x = a; x <= b + 1e-9; x += h)
        {
            double y = Math.Tan(x);
            Console.WriteLine($"{x:F4}\t\t{y:F6}");
        }
    }
}