Compute the Nth Fibonacci Numbers using Iterative and Math ...
https://helloacm.com/compute-the-nth-fibonacci-numbers-using-iterative...25.10.2020 · The Fibonacci sequence goes like this: 1, 1, 2, 3, 5, 8, 13, 21, 34, … The next number can be found by adding up the two numbers before it, and the first two numbers are always 1. Write a function that takes an integer n and returns the nth Fibonacci number in the sequence. Note: n will be less than or equal to 30. Example 1 Input n = 1 Output 1