Jump to content

Smallest square that begins with n: Difference between revisions

m
m (→‎{{header|Wren}}: Minor tidy)
Line 2,916:
 
=={{header|Wren}}==
{{libheader|Wren-seq}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="ecmascriptwren">import "./seqfmt" for LstFmt
import "/fmt" for Fmt
 
var isSquare = Fn.new { |n|
Line 2,950 ⟶ 2,948:
}
System.print("Smallest squares that begin with 'n' in [1, 49]:")
for (chunk in Lst.chunks(squares, 10)) Fmt.printtprint("$5d", chunksquares, 10)</syntaxhighlight>
 
{{out}}
9,485

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.