Skip to main content

Find Factorial Using Scala

def factorial(n: Int):Int={
if (n == 0) 
         1
else
         n * factorial(n-1)
}

Comments

Post a Comment

Popular posts from this blog

Photo + Photoshop

https://www.instagram.com/

Fun @ රූප

Deepin Linux