Fibonacci numbers

Fibonacci numbers. The Fibonacci sequence is defined as follows:

ϕ0=0, ϕ1=1, ϕn=ϕn−1+ϕn−2.

Given a non-negative integer n, print the nth Fibonacci number ϕn. Solve this problem using a for loop.

Test Case Input (n) Expected Output
1 0 0
2 1 1
3 10 55