2 like 0 dislike

          Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and characterized by the fact that every number after the first two is the sum of the two preceding ones, for example:

1,1,2,3,5,8,13,21,34,55 ..... and so on.

        Please write a program to let the users enter a number "n" and then display the sequence to the nth term.

Sample Input:

6

Sample Output:

1 1 2 3 5 8

[Normal] Coding (C) - asked in Introduction to Computer Programming I (C) by (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 5 views
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.70.185
©2016-2019

Related questions

3 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 17 views
8,033 questions
60,929 answers
33,033 comments
1,102 users