#include #include #include //for pow (stands for "power") using namespace std; //Interest is 6% annually. int main() { double principal {1000.00}; //start with this many dollars cout << "After 10 years, the principal becomes $" << principal * 1.06 * 1.06 * 1.06 * 1.06 * 1.06 * 1.06 * 1.06 * 1.06 * 1.06 * 1.06 << "\n"; cout << "After 10 years, the principal becomes $" << principal * pow(1.06, 10.0) << "\n"; return EXIT_SUCCESS; }