RosettaCodeData/Task/Van-Eck-sequence/Zkl/van-eck-sequence-2.zkl

8 lines
268 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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(","));
}