archangelmihail

MathExpression

Nov 30th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace MathExpression
  8. {
  9.     class MathExpression
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             decimal n = decimal.Parse(Console.ReadLine());
  14.             decimal m = decimal.Parse(Console.ReadLine());
  15.             decimal p = decimal.Parse(Console.ReadLine());
  16.             decimal result = 0;
  17.             decimal sin = (decimal)Math.Sin((int)m % 180);
  18.             result = (n * n + 1 / (m * p) + 1337) / (n - 128.523123123m * p) + sin;
  19.             Console.WriteLine("{0:F6}", result);
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment