User:Gohil kartik/sandbox

Given a positive number n, the program computes the factorial of all the even numbers between 1 and n, if n is even and the factorial of odd numbers between 1 and n if n is odd.

Input Format:

Value of n

Output Format:

Number and its factorial on each line, separate the number and its factorial by a tab.