Guys!
I have the code it calculates the factorial only once i want it to calculate it again n again until "0" is entered i think it involves the use of sentinel loops but how its used don know
The code that i have is here:
Code:#include<stdio.h> void main() { long int fact , n; printf ("Enter the integer"); scanf ("%ld", &n); fact = 1; while (n>=1) { fact = fact * n; n = n - 1; } printf ("Factorial = %ld", fact); }