If i take n=50 in the following code then why it is giving negative integer....?

Hey @Narasimha
50th fib is out of Integer Rang.
You must provide long data types.