Find limit of recursion is part of Short Circuit's Console Program Basics selection.
Task

Find the limit of recursion.




// Find limit of recursion, in V
module main
 
// starts here, then call down until stacks become faulty
pub fn main() {
    recurse(0)
}
 
fn recurse(n int) {
    println(n)
    recurse(n+1)
}