Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace vova_task1
- {
- internal class Program
- {
- private static void Main(string[] args)
- {
- double z1 = 0, z2 = 0, x = 0;
- Console.Write("введите x: ");
- x = double.Parse(Console.ReadLine());
- if (Math.Abs(x-3) < 1e-6)
- {
- Console.WriteLine("при данном выражении делитель равен 0");
- return;
- }
- z1 = (x * x + 2 * x - 3 + (x + 1) * Math.Sqrt(x * x - 9)) /
- (x * x - 2 * x - 3 + (x + 1) * Math.Sqrt(x * x - 9));
- z2 = Math.Sqrt((x + 3) / (x - 3));
- Console.WriteLine($"результат: {z1:F5} {z2:F5}");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement