Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace prac_3_ex_1
- {
- class Program
- {
- static double Fun(double x)
- {
- return Math.Sqrt(Math.Pow(x, 2) - 1);
- }
- static void Main(string[] args)
- {
- Console.Write("Введите x: ");
- double x = double.Parse(Console.ReadLine());
- if (x < 0) Console.WriteLine("y = {0}", Fun(x));
- else Console.WriteLine("Функция не определена в данной точке");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement