2 like 0 dislike
220 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
| 220 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:162.158.137.170
©2016-2024

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
| 339 views
12,783 questions
183,443 answers
172,219 comments
4,824 users