2 like 0 dislike
118 views

          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)
ID: 21881 - Available when: Unlimited - Due to: Unlimited
| 118 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.135.44
©2016-2022

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)
ID: 21792 - Available when: Unlimited - Due to: Unlimited
| 216 views
14,132 questions
223,123 answers
200,607 comments
5,464 users