7 lines
268 B
Text
7 lines
268 B
Text
foreach n in (9){
|
|
ve:=vanEck(n);
|
|
println("The first ten terms of the Van Eck (%d) sequence are:".fmt(n));
|
|
println("\t",ve.walk(10).concat(","));
|
|
println(" Terms 991 to 1000 of the sequence are:");
|
|
println("\t",ve.drop(990-10).walk(10).concat(","));
|
|
}
|