Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2014
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. using System;
  2.  
  3. class MathFormula
  4. {
  5. static void Main(string[] args)
  6. {
  7. decimal N = decimal.Parse(Console.ReadLine());
  8. decimal M = decimal.Parse(Console.ReadLine());
  9. decimal P = decimal.Parse(Console.ReadLine());
  10.  
  11. decimal firstresult = (N * N) + (1 / (M * P)) + 1337;
  12. decimal secondResult = N - 128.523123123M * P;
  13. decimal thirdResult = firstresult / secondResult;
  14. double angle = (int)M % 180;
  15. double mMod = Math.Sin(angle);
  16.  
  17. decimal finalResult = thirdResult + (decimal)mMod;
  18. decimal output = Math.Round(finalResult, 6);
  19. Console.WriteLine(output);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement