Información

Autor(es) Tanguy De Bels
Fecha de entrega Sin fecha de envío
Tiempo límite de envío Sin límite de envío
Etiquetas de categoría session1

Inicia sesión

Session 1: Q* Factorial

In mathematics, the factorial of a strictly positive integer x, denoted as \(x!\) is the product of all strictly positive integers less than or equal to x. The factorial of 0 is defined as 1. Calculate the factorial of an integer x and store the computed value in the variable result.

Examples:

  • \(5! = 5 \times 4 \times 3 \times 2 \times 1 = 120\)
  • \(0! = 1\)

Implementation
x = ... #the number
result = ... #store in this variable the factorial of x