Generation

generate functionSun, 19 Mar 2023

get the gamma value of a number

function gamma(x: number){ if(x == 0){ return 1; } else{ return (x - 1) * gamma(x - 1); } }

TypeScript
Generate More

Questions about programming?Chat with your personal AI assistant