I'm trying to write a code to find the solution for a,b and c. What am I missing? If you don't want to use math library and define factorial and then find the solution.
 num = input("Enter a number: ")
def fact(n):
 if n == 1:
  return n
 elif n < 1:
  return ("NA")
 else:
  return n*fact(n-1)
print (fact(int(num)))
a=1
b=1
c=0
while a<100:
  while b<100:
    while c<100:
     #fact(a)*fact(b)=fact(a)+fact(b)+fact(c)
     if (fact(a)*fact(b))==(fact(a)+fact(b)+fact(c)):
       print(int(a),int(b),int(c))
       break
     else:
      c=c+1
    return
