Computer Science, asked by rajesh23340, 9 months ago

A factorial number N is given. Write a C program to find which number's factorial N is. For example, 5!=120. 120 is given, you have to find 5.​

Answers

Answered by ıtʑFᴇᴇʟɓᴇãᴛ
2

def primeNumbers(num):

primes = [ ]

i = 2

# iterates through range from 2 to

num(inclusive)

while i< =num:

# add ‘while’ condition

k = 2

is Prime = True

# check if prime number

while k<i: # add’while’condition

if i%k==0:

isPrime = False

k+ = l # update k

if isPrime = =True:

primes.append(i)

i+ = l # update i

return prime

5! =120

5×4×3×2×1 =120

Similar questions