Posts by Gabriela Luisa Eckel • 31 points
1 post
- 
		3 votes3 answers4140 viewsQ: Function that calculates the factorial of a numberint fatorial(int n, int f){ int resultado; while(n>1){ f=1; resultado=(n*f); f=f-1; } return (resultado); } int main(void){ int resultado; int n; int f; printf("Digite o numero a ser…