[Ilugc] factorial

  • From: a.kumar@xxxxxxxxxxxxxxxxx (Kumar Appaiah)
  • Date: Mon, 28 Feb 2011 06:57:20 -0600

On Mon, Feb 28, 2011 at 06:05:11PM +0530, Saravanan Selvamani wrote:

Hi,
               Anyone knows how to find the factorial of a number without
using loops , arithmetic operator,case structure.I guess that this has to be
done by using bitwise operator.but i dont know how.

One way is to use recursive function calls. Just search online for
"factorial recursion" for details.

Kumar
-- 
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################

Sub : /etc/nologin                                   LOST #517

If the file /etc/nologin exists, login will allow access only 
to root users. Other users will be shown the contents of this 
file and their logins will be refused.

####[ajitabhpandey (at) users.sourceforge.net]################
:

Other related posts: