Kevin salamanca

Generation

generate functionTue, 11 Apr 2023

Obtener el factorial de un número, el número se proporciona desde el teclado

int factorial(int n) { int res = 1; for (int i = 1; i <= n; i++) { res *= i; } return res; }

Want to kickstart your project?Use the new AI Studio to create your code