Anonymous user
Hourglass puzzle: Difference between revisions
m
→{{header|REXX}}: changed the program to output numbers within the output text.
m (→{{header|Raku}}: don't worry, please consult the Julia entry) |
m (→{{header|REXX}}: changed the program to output numbers within the output text.) |
||
Line 397:
=={{header|REXX}}==
{{trans|Python}}
<lang rexx>/*REXX program determines if there is a solution to measure 9 minutes using a */
Line 415 ⟶ 414:
say "Turn over both sandglasses (at the same time) and continue"
say "flipping them each when the sandglasses individually run down"
say "until the four-minute glass is flipped "
say "whereupon the seven-minute glass is immediately placed on its"
say "side with "
say
say "You can measure 9 minutes by flipping the four-minute glass"
Line 428 ⟶ 427:
Turn over both sandglasses (at the same time) and continue
flipping them each when the sandglasses individually run down
until the four-minute glass is flipped
whereupon the seven-minute glass is immediately placed on its
side with
You can measure 9 minutes by flipping the four-minute glass
|