Advertisement
psotirov

Math Expression

Dec 10th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using System;
  2.  
  3. class MathExpression
  4. {
  5.     static void Main()
  6.     {
  7.         double N = double.Parse(Console.ReadLine());
  8.         double M = double.Parse(Console.ReadLine());
  9.         double P = double.Parse(Console.ReadLine());
  10.         double result = (N * N + 1 / (M * P) + 1337) / (N - 128.523123123d * P) + Math.Sin((int)M % 180);
  11.         Console.WriteLine("{0:F6}",result);
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement