Jump to content

Multiplication tables: Difference between revisions

Updated D code
m (→‎{{header|C#}}: fixed c# header)
(Updated D code)
Line 570:
 
=={{header|D}}==
<lang d>import std.stdio, std.stringarray;
 
void main() {
Line 578:
writef("%4d", row);
writeln();
writeln("--+-", repeat("-", .replicate(max * 4));
foreach (row; 1 .. max+1) {
writef("%2d", row);
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.