Hi, how do i output a list,1-5 of the following factorial?
#include <stdio.h>
#include <stdlib.h>
#define fact 5
int main(void)
{
int i,result=1;
for (i=fact;i>=1;i--)
result*=i;
printf("factorial of (%d) = %d\n", fact, result);
return(EXIT_SUCCESS);
}