/* warning #2027: Missing prototype for 'printline'.
Missing prototype for 'value'.
*/
#include<stdio.h>
void value();
int main()
{
void printline();
void value();
void printline();
}
void printline()
{
for(int i=0;i<20;i++)
printf("%c",'-');
printf("\n");
}
void value()
{
float principal,inrate,sum;
int period,year;
printf("Enter principal, inrate, year :\n");
scanf("%f%f%d",&principal,&inrate,&period);
sum=principal;
year = 1;
while (year<=period)
{
sum =sum*(1+inrate);
year++;
}
printf("%f\t%f\t%f\n",principal,inrate,sum);
}