9 billion names of God the integer: Difference between revisions
Content added Content deleted
Line 5,179: | Line 5,179: | ||
=={{header|Zig}}== |
=={{header|Zig}}== |
||
===Standard triangle solution=== |
|||
<syntaxhighlight lang="zig">const std = @import("std"); |
<syntaxhighlight lang="zig">const std = @import("std"); |
||
const print = std.debug.print; |
const print = std.debug.print; |
||
Line 5,272: | Line 5,273: | ||
1 12 52 120 192 235 248 230 201 164 131 100 77 56 42 30 22 15 11 7 5 3 2 1 1 |
1 12 52 120 192 235 248 230 201 164 131 100 77 56 42 30 22 15 11 7 5 3 2 1 1 |
||
</pre> |
</pre> |
||
Here is faster version |
===Here is faster version=== |
||
<syntaxhighlight lang="zig">const std = @import("std"); |
<syntaxhighlight lang="zig">const std = @import("std"); |
||
const print = std.debug.print; |
const print = std.debug.print; |