Stair-climbing puzzle: Difference between revisions

→‎{{header|C sharp|C#}}: I'm pretty sure this is all it needs
(→‎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:
 
=={{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>
void step_up() {
for (; step() == false; );
}
</lang>
 
=={{header|Clojure}}==
Anonymous user