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

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
| 252 views
15,032 questions
243,142 answers
215,948 comments
5,696 users