#include<stdio.h>
#define PRINCIPAL 5000.00
#define PERIOD 10
main()
{
int year;
float amount, interest, value;
amount= PRINCIPAL;
year= 0;
interest=0.5;
while(year<= PERIOD)
{
printf("%2d\t%8.2f\n", year
, amount
); value= amount + amount*interest ;
year=year+1;
value=amount;
}
}
I2luY2x1ZGU8c3RkaW8uaD4KI2RlZmluZSBQUklOQ0lQQUwgNTAwMC4wMAojZGVmaW5lIFBFUklPRCAxMAptYWluKCkKewppbnQgeWVhcjsKZmxvYXQgYW1vdW50LCBpbnRlcmVzdCwgdmFsdWU7CmFtb3VudD0gUFJJTkNJUEFMOwp5ZWFyPSAwOwppbnRlcmVzdD0wLjU7CndoaWxlKHllYXI8PSBQRVJJT0QpCnsKcHJpbnRmKCIlMmRcdCU4LjJmXG4iLCB5ZWFyLCBhbW91bnQpOwp2YWx1ZT0gYW1vdW50ICsgYW1vdW50KmludGVyZXN0IDsKeWVhcj15ZWFyKzE7CnZhbHVlPWFtb3VudDsKfQp9