I've always thought it would be great to have a program that automatically shows large sequences of the Fibonacci sequence...so far i have
I want the program to show: "Sequence 1: 1". Sequence 2: "1", Sequence 3: "2", Sequence 4: "3", etc etc...
Does anybody know how I can do this? Also, I want the program to ask "What sequence do you wish to know?"
And then if i type, "61", it will show the 61th sequence of the Fibo. Series.
Thanks.
Code:
a, b = 0, 1 while b < 1000: print b a, b = b, a+b
Does anybody know how I can do this? Also, I want the program to ask "What sequence do you wish to know?"
And then if i type, "61", it will show the 61th sequence of the Fibo. Series.
Thanks.
Comment