Stair-climbing puzzle: Difference between revisions

Content added Content deleted
(→‎C sharp: incorrect: Does not account for falling down steps.)
(→‎{{header|C sharp|C#}}: I'm pretty sure this is all it needs)
Line 21: Line 21:


=={{header|C sharp|C#}}==
=={{header|C sharp|C#}}==
<lang csharp>void step_up() {

for (; step() == false; )step_up();
{{incorrect|C sharp|Does not account for falling down steps.}}
<lang csharp>
}</lang>
void step_up() {
for (; step() == false; );
}
</lang>


=={{header|Clojure}}==
=={{header|Clojure}}==