#WSQ09 #TC1017

Create a program that asks the user for a non-negative integer (let’s call that number n) and display for them the value of n! (n factorial). After showing them the answer, ask them if they would like to try another number (with a simple y/n response) and either ask again (for y) or quit the program and wish them a nice day (if they answered n).

RECURSION

CC BY 4.0 #WSQ09 #TC1017 by Mitzi Hernandez is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.