#WSQ09 – Factorial Calculator

Hey people, it’s been such a long time since my last post, but, I’m back.

As always, here’s what we need to do:

  • 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).

So, let’s begin:

WSQ09

Not a difficult code, but it’s a little long, if you have any question about my code, just ask below in the comments section.

Let’s move.

CC BY-SA 4.0 #WSQ09 – Factorial Calculator by manuelmendezhijar is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.