Created
March 29, 2018 18:30
-
-
Save gsimard/5458738c10714cb0efabf6cef61a1ab7 to your computer and use it in GitHub Desktop.
Fonction récursive VBA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Function nbrVoituresSurCercle(ByVal i As Long) As Long | |
nbrVoituresSurCercle = i | |
End Function | |
Public Function nbrVoituresTotal(ByVal i As Long) As Long | |
If i = 1 Then | |
nbrVoituresTotal = nbrVoituresSurCercle(1) | |
Else | |
nbrVoituresTotal = nbrVoituresSurCercle(i) + nbrVoituresTotal(i - 1) | |
End If | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment