Simple Interest
#include <stdio.h>
#include <conio.h>
void main()
{
int si,p,r,t;
clrscr();
printf("Enter the principal amount");
scanf("%d",&p);
printf("Enter the Rate of interest");
scanf("%d",&r);
printf("Enter the time");
scanf("%d",&t);
si=(p*r*t)/100;
printf("The simple Interest is : %d",si);
getch();
}
OUTPUT
Enter the principal amount
200
Enter the Rate of interest
10
Enter the time
5
The simple Interest is : 100_
No comments:
Post a Comment