Show the (decimal) value of a number of 1s appended with a 3, then squared: Difference between revisions
Show the (decimal) value of a number of 1s appended with a 3, then squared (view source)
Revision as of 23:40, 9 February 2023
, 1 year ago→AWK: simplify
No edit summary |
(→AWK: simplify) |
||
Line 155:
=={{header|AWK}}==
<syntaxhighlight lang="awk">
BEGIN {
for (n
printf "%u %9u^2 %'20u\n", n, m, m * m
}
}
</syntaxhighlight>
|