Program.cs 944 B

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