Generation

generate functionSun, 13 Nov 2022

Non recursive factorial of n

int fact(int n){ int result = 1; for(int i = 1; i < n; i++){ result = result * i; } return result; }

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