#include #include "linkbig.h" LBigInt fact(int n) // postcondition: return n! { LBigInt result = 1; int k; for(k=1; k <= n; k++) { result = result * k; } return result; } int main() { LBigInt a, b; int k,first,last; cout << "enter first last numbers for factorial: "; cin >> first >> last; for(k=last; k >= first; k--) // for(k=first; k <= last; k++) { b = fact(k); a = b; cout << k << "! = \t" << a << endl; } return 0; }