Pancake numbers: Difference between revisions
Content added Content deleted
(added 12 incomplete tags) |
|||
Line 15: | Line 15: | ||
=={{header|AWK}}== |
=={{header|AWK}}== |
||
{{incomplete|AWK|Show examples requiring p(1..9) flips}} |
|||
<lang AWK> |
<lang AWK> |
||
# syntax: GAWK -f PANCAKE_NUMBERS.AWK |
# syntax: GAWK -f PANCAKE_NUMBERS.AWK |
||
Line 48: | Line 49: | ||
</pre> |
</pre> |
||
=={{header|C}}== |
=={{header|C}}== |
||
{{incomplete|C|Show examples requiring p(1..9) flips}} |
|||
{{trans|Go}} |
{{trans|Go}} |
||
<lang c>#include <stdio.h> |
<lang c>#include <stdio.h> |
||
Line 79: | Line 81: | ||
=={{header|C++}}== |
=={{header|C++}}== |
||
{{incomplete|C++|Show examples requiring p(1..9) flips}} |
|||
{{trans|C}} |
{{trans|C}} |
||
<lang cpp>#include <iomanip> |
<lang cpp>#include <iomanip> |
||
Line 110: | Line 113: | ||
=={{header|Cowgol}}== |
=={{header|Cowgol}}== |
||
{{incomplete|Cowgol|Show examples requiring p(1..9) flips}} |
|||
{{trans|C}} |
{{trans|C}} |
||
Line 166: | Line 170: | ||
=={{header|D}}== |
=={{header|D}}== |
||
{{incomplete|D|Show examples requiring p(1..9) flips}} |
|||
{{trans|C}} |
{{trans|C}} |
||
<lang d>import std.stdio; |
<lang d>import std.stdio; |
||
Line 446: | Line 451: | ||
=={{header|Kotlin}}== |
=={{header|Kotlin}}== |
||
{{incomplete|Kotlin|Show examples requiring p(1..9) flips}} |
|||
{{trans|C}} |
{{trans|C}} |
||
<lang scala>fun pancake(n: Int): Int { |
<lang scala>fun pancake(n: Int): Int { |
||
Line 475: | Line 481: | ||
=={{header|MAD}}== |
=={{header|MAD}}== |
||
{{incomplete|MAD|Show examples requiring p(1..9) flips}} |
|||
{{trans|C}} |
{{trans|C}} |
||
Line 504: | Line 511: | ||
=={{header|Perl}}== |
=={{header|Perl}}== |
||
{{incomplete|Perl|Show examples requiring p(1..9) flips}} |
|||
<lang perl>use strict; |
<lang perl>use strict; |
||
use warnings; |
use warnings; |
||
Line 612: | Line 620: | ||
=={{header|Raku}}== |
=={{header|Raku}}== |
||
{{incomplete|Raku|Show examples requiring p(1..9) flips}} |
|||
{{trans|C}} |
{{trans|C}} |
||
<lang perl6># 20201110 Raku programming solution |
<lang perl6># 20201110 Raku programming solution |
||
Line 629: | Line 638: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
{{incomplete|REXX|Show examples requiring p(1..9) flips}} |
|||
{{trans|Go}} |
{{trans|Go}} |
||
{{trans|Phix}} |
{{trans|Phix}} |
||
Line 674: | Line 684: | ||
=={{header|Ring}}== |
=={{header|Ring}}== |
||
{{incomplete|Ring|Show examples requiring p(1..9) flips}} |
|||
{{trans|C}} |
{{trans|C}} |
||
<lang ring> |
<lang ring> |
||
Line 720: | Line 731: | ||
=={{header|Ruby}}== |
=={{header|Ruby}}== |
||
{{incomplete|Ruby|Show examples requiring p(1..9) flips}} |
|||
{{trans|C}} |
{{trans|C}} |
||
<lang ruby>def pancake(n) |
<lang ruby>def pancake(n) |