Guest User

Untitled

a guest
Jun 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.18 KB | None | 0 0
  1. int n;
  2. Console.WriteLine("get n");
  3. n = int.Parse(Console.ReadLine());
  4. Console.WriteLine((Math.Pow((1 + Math.Sqrt(5)) / 2, n) - Math.Pow(-(1 + Math.Sqrt(5)) / 2, -n)) / Math.Sqrt(5));
Add Comment
Please, Sign In to add comment