Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Sum
- {
- private static void Main()
- {
- // Задание 1
- //int n,m,x;
- //Console.WriteLine("N: ");
- // n = int.Parse(Console.ReadLine());
- // Console.WriteLine("M: ");
- // m = int.Parse(Console.ReadLine());
- //Console.WriteLine("M: ");
- // x = int.Parse(Console.ReadLine());
- // Console.ReadKey(true);
- //Console.WriteLine("(n++/--m)= " + (n++/--m));
- //Console.WriteLine("(++m<n--)= " + (++m<n--));
- //Console.WriteLine("(–-m>++n) " + (–-m>++n));
- //Console.WriteLine("(result) = " + (Math.Sqrt(x + Math.Pow((double)Math.Abs(x),(double)4))) + Math.Abs(x));
- // Задание 2
- //int x,y;
- //Console.WriteLine("X: ");
- // x = int.Parse(Console.ReadLine());
- // Console.WriteLine("Y: ");
- // y = int.Parse(Console.ReadLine());
- //Console.ReadKey(true);
- //int a = (0 - x) * (-1 - 0) - (-1 - 0) * (0 - y);
- //int b = (0 - x) * (0- 0) - (0 - 0) * (0 - y);
- //int c = (-1 - x) * (0 - 0) - (0 - -1) * (-1 - y);
- //if (((x - 0) * 2 + Math.Pow((y - 0), 2) <= 1) || (a >= 0 && b >= 0 && c >= 0) || (a <= 0 && b <= 0 && c <= 0))
- //{
- // Console.WriteLine("point is included");
- //}
- //else
- //{
- // Console.WriteLine("point is not included");
- //}
- // Задание 3
- //int a = 10;
- //float b = (float) 0.01;
- //Console.WriteLine((Math.Pow((a+b),2) - (Math.Pow(a,4) + 6*Math.Pow(a,2)*Math.Pow(b,2) + Math.Pow(b,4)) / Math.Pow(b,4) + 4 * Math.Pow(a,3) * b));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement