Computer Science, asked by RajeshChaubeyKing, 1 day ago

write a program to input a number.
check whether it is a factorial or not.​

Answers

Answered by Riyankapandey
2

Answer:

Given a number n, the task is to determine whether n can be a factorial of some number x

Examples:

Input: N = 24

Output: Yes

Explanation: 4! = 24

Input: N = 25

Output: No

Answered by IIGoLDGrAcEII
1

Answer:

The factorial of a number is the product of all the integers from 1 to that number.

For example, the factorial of 6 is 1*2*3*4*5*6 = 720. Factorial is not defined for negative numbers, and the factorial of zero is one, 0! = 1.

Explanation:

Hey, thank you for pts

Your intro?

Similar questions