1. Course
  2. Recursion
  3. Calculate the factorial of a number

Calculate the factorial of a number


Last updated: 8/23/2020 Difficulty: Intermediate

Create a C# program that implements a recursive function that receives a requested number from the user and returns the factorial of that number. You must calculate the factorial of the number using recursion.

Input

6

Output

720

Solution

Recursion

4 / 6

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising