class Solution { public: int Fibonacci(int n) { double c1 = (1.0 + sqrt(5)) / 2, c2 = (1.0 - sqrt(5)) / 2; return (int)((pow(c1, n) - pow(c2, n)) / sqrt(5)); } };class Solution { public: int Fibonacci(int n) { double c1 = (1.0 + sqrt(5)) / 2, c2 = (1.0 - sqrt(5)) / 2; return (int)((pow(c1, n) - pow(c2, n)) / sqrt(5)); } };