using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace lab3
{
class Program
{
static double CalculateExpression(double a, double b, double c, double x, double n)
{
double numerator = math.Pow(math.abs(math.pow(math.tan(x),5)+a*b*c),6) / 75 - 43 * math.pow(x,x);
double denominator = math.pow(math.sin(math.pi / 6 *n), 5);
return numerator * denominator;
}
static void Main(string[] args)
{
Console.Write("Введите значение a: ");
double a = double.Parse(Console.ReadLine());
Console.Write("Введите значение b: ");
double b = double.Parse(Console.ReadLine());
Console.Write("Введите значение c: ");
double c = double.Parse(Console.ReadLine());
Console.Write("Введите значение x: ");
double x = double.Parse(Console.ReadLine());
Console.Write("Введите значение n: ");
double n = double.Parse(Console.ReadLine());
double result = CalculateExpression(a, b, c, x, n);
result = Math.Round(result, 2);
Console.WriteLine($"Результат: {result}");
Console.ReadKey();
}
}
}
Пример который ввожу