Scala program to find Factorial of a given number

Hey there!

Welcome to ClearUrDoubt.com.

In this post, we will look at a Scala program to find Factorial of a given number using Linear Recursion.

Let’s look at the program:

Output:

Currently this program uses Linear Recursion for finding the factorial. This program can be improved using Tail Recursion concept. Check out the below link:

Scala program to find Factorial of a given number using Tail Recursion

Happy Learning.

Please leave a reply in case of any queries.

Leave a Reply

Your email address will not be published. Required fields are marked *