Mine
public text v1 · immutable#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
int years = 10;
int D = 100;
double p = 0.075 / 12;
int T = years * 12;
double S = D * ((pow(1 + p, T) - 1) / p);
cout << fixed;
cout << setprecision(0);
cout << "In " << years << " years, $";
cout << D << " will grow to $";
cout << setprecision(2) << S << "." << endl;
return 0;
}