WSQ09 Factorial

In this program we have to make a loop in which we find the factorial number of the one ingress by the user. Then we have to ask if he wants to ingress another number to calculate the factorial.

The factorial function (symbol: !) means to multiply a series of descending natural numbers. Example:

  • 4! = 4 × 3 × 2 × 1 = 24

I´m going to use a For loop to make the factorial inside a Do-While loop to ask if he wants another number.

Captura de pantalla 2016-02-12 a las 9.44.23 a.m.

Captura de pantalla 2016-02-12 a las 9.44.43 a.m.

The code will be here at GitHub

Greetings!

BRk4Gd2_700wa_0

 

TC101

WSQ09

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