Recursive Functions
Functions that call themselves for repetitive breakdown tasks.
Example: factorial
kaj fact(n) {
jodi (n == 0) tahole {
ferotDao 1
}
nahole {
ferotDao n * fact(n-1)
}
}
lekho(fact(10))
Functions that call themselves for repetitive breakdown tasks.
Example: factorial
kaj fact(n) {
jodi (n == 0) tahole {
ferotDao 1
}
nahole {
ferotDao n * fact(n-1)
}
}
lekho(fact(10))