Fibonacci problem ( Value of Fib ( N ) * Fib ( N ) | C # implementation of the approach ; Driver code
using System ; class GFG { static int getResult ( int n ) { if ( ( n & 1 ) > 0 ) return 1 ; return - 1 ; } public static void Main ( ) { int n = 3 ; Console . WriteLine ( getResult ( n ) ) ; } }