Skip to content

Latest commit

 

History

History

day-9-recursion

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Day 9: Recursion 3

https://www.hackerrank.com/challenges/30-recursion

Problem

Objective

Today, we're learning and practicing an algorithmic concept called Recursion.

Task

Write a factorial function that takes a positive integer, N as a parameter and prints the result of N! (N factorial).

Input Format

A single integer, N (the argument to pass to factorial).

Output Format

Print a single integer denoting N!.

Sample Input

3

Sample Output

6

My Solution