Examples in Gambas (#5) by @vdelacruzjardon
This commit is contained in:
committed by
Aditya Bhargava
parent
e2a4153e80
commit
0aec97dbf2
15
03_recursion/gambas/01_countdown/.src/countdown.module
Normal file
15
03_recursion/gambas/01_countdown/.src/countdown.module
Normal file
@@ -0,0 +1,15 @@
|
||||
' Gambas module file
|
||||
|
||||
Function countdown(i As Integer) As Integer
|
||||
Print i
|
||||
If i <= 0 Then
|
||||
Return
|
||||
Else
|
||||
countdown(i - 1)
|
||||
Endif
|
||||
|
||||
End
|
||||
|
||||
Public Sub Main()
|
||||
countdown(5)
|
||||
End
|
||||
Reference in New Issue
Block a user