Skip to content

Instantly share code, notes, and snippets.

View bichanna's full-sized avatar

Nobuharu Shimazu bichanna

View GitHub Profile
#include <iostream>
#include <iomanip>
using namespace std;
int years;
double initial_amount, amount_to_add, rate;
double calculate(double prev, int count, int years) {
return (years == count)