2 thích 0 k thích
89 đã xem

          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) - đã hỏi trong Introduction to Computer Programming I (C) bởi (20.9k điểm)
ID: 21881 - Xem được từ: Không giới hạn - Hiệu lực đến: Không giới hạn
| 89 đã xem
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.7.22
©2016-2024

Những câu hỏi liên quan

3 thích 0 k thích
0 trả lời
[Normal] Coding (C) - đã hỏi ngày 18 tháng 1 năm 2017 trong Introduction to Computer Programming I (C) bởi The Contributor (20.9k điểm)
ID: 21792 - Xem được từ: Không giới hạn - Hiệu lực đến: Không giới hạn
| 176 đã xem
12,783 câu hỏi
183,443 trả lời
172,219 bình luận
4,824 thành viên