Thread
:
fibonacci sequence
View Single Post
Oct 9th, 2006, 7:51 AM
#
10
Arevos
Programming Guru
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power:
5
Or perhaps:
python Syntax
(
Toggle Plain Text
)
x, y =
0
,
1
for
i
in
xrange
(
1000
)
:
print
"%d "
% x,
x, y = y, x + y
x, y = 0, 1 for i in xrange(1000): print "%d " % x, x, y = y, x + y
Arevos
View Public Profile
Visit Arevos's homepage!
Find More Posts by Arevos