Anonymous user
Water collected between towers: Difference between revisions
uBasic/4tH - eliminated a global
imported>Thebeez (Added uBasic/4tH version) |
imported>Thebeez (uBasic/4tH - eliminated a global) |
||
Line 1,130:
{{Trans|GW-BASIC}}
<syntaxhighlight lang="basic">Dim @t(20)
End
_getWater
Param (1)
Local (2)
w = 0
For b@ =
@t(b@) = Pop()
Next
Do While FUNC(_netWater (
Print "Block ";
Return (a@ + 1)
_netWater
Line 1,190:
Block 7 holds 0 water units.
0 OK, 0:
==={{header|Visual Basic .NET}}===
====Version 1====
|