Answers for "fatorial recursivo em javascript"

0

fatorial recursivo em javascript

/* 
function fatorial(numero) {
	if(numero<=1) {
    	return 1
    } else {
    	return numero * fatorial(numero - 1)
    }
}
*/
f = (n) => n <= 1 ? 1 : n * f(n-1)
Posted by: Guest on June-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language