Library | Building | Programming | Quick Guides Home | Quick Guides to Building | Quick Guides to Programming | LVLM | WeDo
Details for Compute Factorial
PropertyValue
NameCompute Factorial
Description

This program shows how to execute the concept of recursion (using a function within itself).  The factorial program takes in a number n, and computes n factorial (n!).  n! =  n*(n-1)*(n-2)*(n-3) etc.  By definition, 0! is equal to 1.   This example uses a while loop and a shift register.

 


FilenameCompute Factorial.vi
Filesize7.31 kB
Filetypevi (Mime Type: application/octet-stream)
Creatormportsmo
Created On: 06/08/2011 10:45
ViewersEverybody
Maintained byEditor
Hits214 Hits
Last updated on 06/08/2011 10:51
Homepage
CRC Checksum
MD5 Checksum
Home | About Us | Contact Us
© 2013 Center for Engineering Educational Outreach, Tufts University
© 2013 The LEGO Group. All rights reserved.