C
Principle Amount in C
/* PROGRAM TO ACCEPT PRINCIPle AMOUNT, NO. OF YEARS AND RATE OF INTEREST AND THEN DISPLAY THE INTEREST AMOUNT PAYABLE */ #include
#include
void main() { int p; float n,r,i; clrscr(); printf("\nEnter principal amount, no. of years and rate of interest respectively\n\n"); scanf("%d%f%f",&p,&n,&r); i = (p*n*r)/100; printf("\ninterest amount payable = Rs. %f\n",i); getch(); }
Please send comments to
vgdarur.javafive@blogger.com
Copyright © 2008 - iForeRunner.com
http://www.iforerunner.com/