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