Program.cs 852 B

1234567891011121314151617181920212223
  1. using System;
  2. namespace ConsoleApp1
  3. {
  4. class Program
  5. {
  6. static void Main(string[] args)
  7. {
  8. // Вводим числа
  9. Console.Write("Введите число e = ");
  10. double e = Convert.ToDouble(Console.ReadLine());
  11. Console.Write("Введите число y = ");
  12. double y = Convert.ToDouble(Console.ReadLine());
  13. Console.Write("Введите число x = ");
  14. double x = Convert.ToDouble(Console.ReadLine());
  15. // Считаем с округлением
  16. double Result = Math.Round(Math.Pow(e, x) - (Math.Pow(y, 2) + 12 * x * y - 3 * Math.Pow(x, 2)) / (18 * y - 1), 2);
  17. // Выводим ответ
  18. Console.WriteLine("Ответ = " + Result);
  19. Console.ReadKey();
  20. }
  21. }
  22. }