Answer
#include
#include
int main(void)
{
$\ \ \ \ $double A,P,i,pow;
$\ \ \ \ $int n;
$\ \ \ \ $printf("P=");scanf("%lf",&P);
$\ \ \ \ $printf("i=");scanf("%lf",&i);
$\ \ \ \ $printf("year$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $A%c",0x0A);
$\ \ \ \ $printf("____________________________________________________&c",0x0A);
$\ \ \ \ $pow=1;
$\ \ \ \ $for(n=1;n<=5;n++)
$\ \ \ \ ${
$\ \ \ \ $$\ \ \ \ $pow=pow*(i+1);
$\ \ \ \ $$\ \ \ \ $A=P*i*pow/(pow-1);
$\ \ \ \ $$\ \ \ \ $printf("%d$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $ %g%c",n,A,0x0A);
$\ \ \ \ $}
$\ \ \ \ $return 0;
}
---
$Result$
$\begin{array}{ll}{\mathrm{n}} & {\mathrm{A}} \\ \hline 1 & {58630} \\ {2} & {30251.9} \\ {3} & {20804.5} \\ {4} & {16091.2} \\ {5} & {13270.6}\end{array}$
________________________________________________________
also, see the following image:
Work Step by Step
--