Search This Blog

Sep 23, 2013

C program to calculate simple intrest amount for deposte amount (p) kept in bamk for (n) years at the rate of (r) sinple intrest per annum

/* write a program to calculate simple intrest amount for deposte amount (p)
kept in bamk for (n) years at the rate of (r) sinple intrest per annum */
#include<stdio.h>
#include<conio.h>
void main()
{
float p,t,r,i;
clrscr();
printf("Enter Principal Amount: ");
scanf("%f",&p);
printf("Enter Time Period: ");
scanf("%f",&t);
printf("Enter the Rate: ");
scanf("%f",&r);
i=(p*t*r/100);
printf("\nYour Simple Intrest= %.2f",i);
getch();
}

No comments:

Post a Comment