Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- using System.Globalization;
- class MathExpression
- {
- static void Main()
- {
- Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
- string nString = Console.ReadLine();
- decimal n = decimal.Parse(nString);
- string mString = Console.ReadLine();
- decimal m = decimal.Parse(mString);
- string pString = Console.ReadLine();
- decimal p = decimal.Parse(pString);
- decimal result = (n * n + (1 / (m * p)) + 1337) / (n - 128.523123123M * p) + (decimal)Math.Sin((int)m % 180);
- Console.WriteLine("{0:0.000000}", result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment