source file name: Simintfor.C

 void main()

{

int per;

float si;

float  p,n,r;

clrscr();

for(per=1;per<=3;per++)

{

printf("\n enter Primuim amount ( P) , Length of years  (N) and Rate (R) of Deposited:");

scanf("%f%f%f",&p,&n,&r);

si=(p*n*r)/100;

printf("\n Simple Interest of Person : %f",si);

}

getch();

}

output: