Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
Perl6
1
Name:
Anonymous
2011-02-12 6:10
Fibonacci in Perl6.
my @fib := (0, 1, *+* ... *);
Can your toy language do this?
24
Name:
Anonymous
2011-02-13 17:52
mad easy in java, just saying.
public class fibonacci
{
public static void main(String []args)
{
int a=1,b=1,x;
System.out.println(a);
System.out.println(b);
do
{
a+=b;
System.out.println(a);
b+=a;
System.out.println(b);
}
while (true);
}
}
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List