September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
13
Task/FizzBuzz/Gambas/fizzbuzz.gambas
Normal file
13
Task/FizzBuzz/Gambas/fizzbuzz.gambas
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Public Sub Main()
|
||||
Dim siCount As Short
|
||||
Dim sText As String
|
||||
|
||||
For siCount = 1 To 100
|
||||
sText = ""
|
||||
If siCount Mod 3 = 0 Then sText = "Fizz"
|
||||
If siCount Mod 5 = 0 Then sText = "Buzz"
|
||||
If siCount Mod 15 = 0 Then sText = "FizzBuzz"
|
||||
If sText Then Print sText Else Print siCount
|
||||
Next
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue