none
Factorial calculations using loops

    Question

  • Trying to figure out how to calculate factorials via loops. Cant seem to figure out where to start when using loops. Any help would be appreciated.

     

    Dan

    Saturday, July 17, 2010 2:43 AM

Answers


  •     intAnswer = intCounter
        Do
          intCounter = intCounter -1
          intAnswer = intAnswer * intCounter
        Loop Until intCounter = 1
      End Sub

    • Marked as answer by Drakozs Saturday, July 17, 2010 6:24 AM
    Saturday, July 17, 2010 5:52 AM

All replies