// Podatkovna zbirka: obr.cpp
// Izracun obresti
#include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
int main()
{
double novo_stanje, zac_vsota = 1000.0, obrestna_mera = .05;
cout << "Leto" << setw(30) << "Stanje na tekocem racunu" << endl;
for (int leto = 1; leto <= 10; leto++)
{
novo_stanje = zac_vsota * pow(1.0 + obrestna_mera, leto);
cout << setw(4) << leto
<< setiosflags(ios::fixed | ios::showpoint)
<< setw(21) << setprecision(2) << novo_stanje << endl;
}
system("pause");
return 0;
}