Hello Guys!
What's the problem with this simple code?!
Thanks.
Code:#include <stdio.h> #include <conio.h> int main () { int n; int fact = 1; for (;;) { printf ("enter a number:\n"); scanf ("%d", &n); for (int i = 1; i <= n; i++) fact *= i; printf ("Factorial is :%d\n", fact); } getch (); return 0; }