can you guys please tell me why this wont do the factorial math!!
Code:#include <stdio.h> #include <conio.h> #include <ctype.h> main() { int n, total, i; total = 1; printf("Enter a natural number: "); scanf ("%d", &n); while (n < 0) { printf ("Error Please Re-Enter Your Natural Number"); scanf ("%d", &n); } i = 1; for (n > 0; i = n; i++) { total = total * i; } printf ("%d", total); fflush(stdin); getch(); return 0; }