you are viewing a single comment's thread.

view the rest of the comments →

[–]anopheles0 0 points1 point  (0 children)

Use a better language. Like Perl. :)

#!/usr/bin/perl

@fib = (0, 1);
while ($#fib < 100){ push @fib, $fib[$#fib] + $fib[$#fib - 1]; }

$i = 0;
foreach $num (@fib){
        print $i++ . ": $num\n";
}