Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.49 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4. public class Sum
  5. {
  6.     private static void Main()
  7.     {
  8.         // Задание 1
  9.         //int n,m,x;
  10.         //Console.WriteLine("N: ");
  11.         //      n = int.Parse(Console.ReadLine());
  12.         //      Console.WriteLine("M: ");
  13.         //      m = int.Parse(Console.ReadLine());
  14.         //Console.WriteLine("M: ");
  15.         //      x = int.Parse(Console.ReadLine());
  16.         //      Console.ReadKey(true);
  17.  
  18.         //Console.WriteLine("(n++/--m)= " + (n++/--m));
  19.         //Console.WriteLine("(++m<n--)= " + (++m<n--));
  20.         //Console.WriteLine("(–-m>++n) " + (–-m>++n));
  21.         //Console.WriteLine("(result) = " + (Math.Sqrt(x + Math.Pow((double)Math.Abs(x),(double)4))) + Math.Abs(x));
  22.  
  23.         // Задание 2
  24.         //int x,y;
  25.  
  26.         //Console.WriteLine("X: ");
  27.         //      x = int.Parse(Console.ReadLine());
  28.         //      Console.WriteLine("Y: ");
  29.         //      y = int.Parse(Console.ReadLine());
  30.         //Console.ReadKey(true);
  31.  
  32.         //int a = (0 - x) * (-1 - 0) - (-1 - 0) * (0 - y);
  33.         //int b = (0 - x) * (0- 0) - (0 - 0) * (0 - y);
  34.         //int c = (-1 - x) * (0 - 0) - (0 - -1) * (-1 - y);
  35.  
  36.         //if (((x - 0) * 2 + Math.Pow((y - 0), 2) <= 1) || (a >= 0 && b >= 0 && c >= 0) || (a <= 0 && b <= 0 && c <= 0))
  37.         //{
  38.         //  Console.WriteLine("point is included");
  39.         //}
  40.         //else
  41.         //{
  42.         //  Console.WriteLine("point is not included");
  43.         //}
  44.  
  45.  
  46.         // Задание 3
  47.         //int a = 10;
  48.         //float b = (float) 0.01;
  49.  
  50.         //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));
  51.  
  52.     }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement