Math, asked by sinnim5876, 1 year ago

Finding last digit of sum of large fibonacci numbers

Answers

Answered by Anonymous
0
Task: Given an integer n, find the last digit of the nth Fibonacci number F(n) (that is, F(n) mod 10). Input Format: The input consists of a single integer n. Output Format: Output the last digit of F(n) . Time Limits: C: 1 sec, C++: 1 sec, Java: 1.5 sec, Python: 5 sec.
Similar questions