def Factorial!

 – Factorial Calculator                                                                                             @PablO_CVi

Create a program that asks the user for a non-negative integer (let’s call that number x) and display for them the value of x! (x 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 x).

CC BY 4.0 def Factorial! by Pablo is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.