[Ilugc] factorial

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Mon, 28 Feb 2011 19:27:42 +0530

On Mon, Feb 28, 2011 at 6:05 PM, Saravanan Selvamani
<saravananselvamani at gmail.com> 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.


Some college question eh?

I remember answering this question in a new method which my teacher
did not understand
in my second semester Fortran course in 1995.

Anyway you cannot solve without using arithmetic operators.

How will you use bitwise operators?

It is messy.

Do it the simple way.

-Girish


-- 
Gayatri Hitech

http://gayatri-hitech.com
girish at gayatri-hitech.com

Other related posts: