Twitter Feed Facebook Google Plus Youtube

Adsense responsive

Recent Post below header

Thursday, 31 January 2013

C PROGRAM: TO CALCULATE SIMPLE INTEREST

CODING:
#include<stdio.h>
#include<conio.h>
void main()
{
float p,r,t,si;
clrscr();
printf("Enter principal amount ");
scanf("%f",&p);
printf("Enter rate of interest ");
scanf("%f",&r);
printf("Enter time ");
scanf("%f",&t);
si=(p*r*t)/100;
printf("Simple Interest = %f",si);
getch();
}


CODING

OUTPUT

For any query or suggestion please comment below...

No comments:

Post a comment