Jump to content


Help?


  • Please log in to reply
1 reply to this topic

#1 xxtheman1xx

xxtheman1xx

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 18 October 2011 - 08:26 PM

I have to answer this question Write a program that lets you enter a positive number n and that prints out n!
(1!=1, 2!=1x2=2, 3! = 1x2x3=6, 4!=1x2x3x4=24, 5! = 1x2x3x4x5=120, etc.)
and I really have no clue what to do. Now you don't have to answer this question, i'm just asking if you could get me some tips or a hint on how to answer it.

#2 Kraicheck

Kraicheck

    Advanced Member

  • Members
  • PipPipPip
  • 880 posts
  • Gender:Male
  • Location:Belgium

Posted 19 October 2011 - 07:10 AM

Write out/think out in words what the factorial algorithm does and perhaps you'll see how you can translate that into code.