/* * * An application that illustrates calling the factorial function defined elsewhere. * */ #include #include uint64_t factorial(unsigned n); int main() { printf("Find N! Enter value - Negative input quits\n"); int n; do { printf("Enter N >"); scanf("%d",&n); if (n>0) printf("factorial(%2u) = %lu\n", n, factorial(n)); } while (n>0); return(0); }