GO Solution For UVa 10579 - Fibonacci Numbers. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

A Fibonacci sequence is calculated by adding the previous two members of the sequence, with the first two members being both 1.

f(1) = 1, f(2) = 1, f(n > 2) = f(n− 1) + f(n− 2)

Input Your task is to take numbers as input (one per line).

Output And then print the corresponding Fibonacci number (on

...

You can find the full details of the problem Fibonacci Numbers at UVa Online Judge

Sample Input

3
100

Sample Output

2
354224848179261915075

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985