0
Is my code similar to recursion
2 Respostas
+ 3
No, it is a loop.
A recursive function is a function that calls itself.
Check these examples:
https://code.sololearn.com/W34vzvOE6bu1/?ref=app
https://code.sololearn.com/ceu7V91HKbBT/?ref=app
https://code.sololearn.com/c3eg8MvlATAf/?ref=app
https://code.sololearn.com/cOInw4yJq7wi/?ref=app
https://code.sololearn.com/wjqW3wmddv0X/?ref=app
https://code.sololearn.com/cE7lXk0wwKMN/?ref=app
https://code.sololearn.com/c4phTP2wUQ3u/?ref=app
https://code.sololearn.com/cOfMIY803RdZ/?ref=app
https://code.sololearn.com/c4Q0rFUFxZIP/?ref=app
https://code.sololearn.com/cj7pAcAEmqTm/?ref=app
+ 2
It's just a loop.