Advertisement
ScorpS

Math Expression

Dec 1st, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5.     static void Main()
  6.     {
  7.         decimal n = decimal.Parse(Console.ReadLine());
  8.         decimal m = decimal.Parse(Console.ReadLine());
  9.         decimal p = decimal.Parse(Console.ReadLine());
  10.         decimal result;
  11.         result = (((n * n) + (1 / (m * p)) + 1337) / (n - ((decimal)128.523123123 * p))) + (decimal)Math.Sin((int)m % 180);
  12.         Console.WriteLine("{0:0.000000}",result);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement