Wednesday, February 8, 2012

find simple interest


#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;float s;
clrscr();
printf(" enter the principal");
scanf("%d",&a);
printf("enter the rate of interest");
scanf("%d", &b);
printf("enter the time period");
scanf("%d", &c);
printf("the simple interest is:");
s = (a*b*c)/100;
printf("the simple interest is:" "%f",s);
getch();
}

No comments:

Post a Comment