More loops!! Haha I actually forgot how to do some loops, but thanks to Sergio, I could remember that exist the loop of DO.
The assignment was to ask the user a non-negative number to find its factorial number. It doesn’t specify if it has to be done as a function or not, but I decided to do it as a function.
Here is the code:
It wasn’t that hard, but like I said before, I forgot that I could do a loop with DO.
Thanks for reading.
Thanks for the help! I was lost.
LikeLike
Your very welcome! 🙂
LikeLike