Someone can help me in the logic of this code? the beginning of it I understand but I get a bit cluttered in the part of the, can someone help me to understand?
#include <stdio.h>
int main(){
int fatorial, n;
printf("insira o numero que vc quer fatorar\n");
scanf("%i",&n);
for(fatorial=1;n>=1; n--){
fatorial *= n;
}
printf("o fator do seu numero e: %i",fatorial);
return 0;
}