Simple C++ program to generate an amortization table