Factorial Calculator

This program 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).

For factorial value we use cilcle for and a do-while for the question and to return.

WSQ09

CC BY-SA 4.0 Factorial Calculator by ferespib is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.