Fibonacci Sequence#3258

Fibonacci Sequence

ثانية
128 ميغابايت
سهل جدًا

The Fibonacci sequence is defined as follows:

For a given value of , find the value of the -th element a_n of the Fibonacci sequence.

المدخلات

One positive integer n~(1 \le n \le 40).

المخرجات

Print the -th element of the Fibonacci sequence.

أمثلة

مثال 1

Loading
Loading

مثال 2

Loading
Loading

مثال 3

Loading
Loading