June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
23
Task/Nautical-bell/Ring/nautical-bell.ring
Normal file
23
Task/Nautical-bell/Ring/nautical-bell.ring
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Project : Nautical bell
|
||||
# Date : 2017/12/26
|
||||
# Author : Gal Zsolt (~ CalmoSoft ~)
|
||||
# Email : <calmosoft@gmail.com>
|
||||
|
||||
m = 0
|
||||
for n = 0 to 23
|
||||
if n = 23
|
||||
see "23" + ":30" + " = " + "7 bells" + nl
|
||||
else
|
||||
m = m + 1
|
||||
see "" + n%23 + ":30" + " = " + m + " bells" + nl
|
||||
ok
|
||||
if n = 23
|
||||
see "00" + ":00" + " = " + "8 bells" + nl
|
||||
else
|
||||
m = m + 1
|
||||
see "" + (n%23+1) + ":00" + " = " + m + " bells" + nl
|
||||
if m = 8
|
||||
m = 0
|
||||
ok
|
||||
ok
|
||||
next
|
||||
Loading…
Add table
Add a link
Reference in a new issue