Search found 1 match

by mekanix
Wed Jan 18, 2012 8:57 pm
Forum: Computer Science
Topic: factorial
Replies: 4
Views: 2489

Re: factorial

It can be done very easily using python with a short code like this: def factorial(m): if x==1: return 1 else: return m*factorial(m-1) print factorial(m) It's called 'recursion' in python. It seems great to write some short codes like this one to find something huge! in fact you can find the factori...