Generation

generate functionSun, 13 Nov 2022

shnorkles eating dog turds recursive

fun shnorkles(n: Int): Int{ if (n <= 1){ return 0 } return n + shnorkles(n-1) } shnorkles(5)

Want to kickstart your project?Use the new AI Studio to create your code