Browse Source

Добавил новую переменную z

Igor Sannikov 2 years ago
parent
commit
1355db4876
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Program.cs

+ 3 - 1
Program.cs

@@ -15,8 +15,10 @@ namespace ConsoleApp1
             double y = Convert.ToDouble(Console.ReadLine());
             Console.Write("Введите число x = ");
             double x = Convert.ToDouble(Console.ReadLine());
+			Console.Write("Введите число x = ");
+            double z = Convert.ToDouble(Console.ReadLine());
             // Считаем с округлением
-            double Otvet  = (Math.Pow(e, x) - (Math.Pow(y, 2) + 12 * x * y - 3 * Math.Pow(x, 2)) / (18 * y - 1), 2);
+            double Otvet  = (Math.Pow(e, x) - (Math.Pow(y, 2) + 12 * x * y - 3 * Math.Pow(x, 2)) / (18 * y - 1), 2) + z;
             // Выводим ответ
             Console.WriteLine("Ответ = " + Otvet);
             Console.ReadKey();