m^n (Recursion - now add the n! code) Click the Green Flag to start. Abby tells you the remaining instructions. Note: The n-slider's minimum value is 1 to avoid n! going into an infinite loop and blowing the Scratch stack. Of course functions for m^n and n! could be written more simply without recursion with a "repeat n" Block just using the simple variables m^n and n! but the point is to teach Recursion with simple examples.
Created by@ gregatku for use in Coding Classes for Kids Unlimited, for whom I work as a Coding teacher. Note: The code for the n! Block is missing. Based on the code for m^n your task to is to write it. (n! is n factorial: n x n-1 x n-2 x n-3 ... x 3 x 2 x 1)