Write a Program to find out the Simple Interest on amount
// This program is to find out the Simple Interest on amount
#include<stdio.h>
main()
{
int p,r,t;
float i;
printf("Enter Principle amount \n");
scanf("%d",&p);
printf("Enter Rate on amount \n");
scanf("%d",&r);
printf("Enter Time period in years \n");
scanf("%d",&t);
i=(p*r*t)/100.0;
printf("Simple Interest = %f",i);
}
/*
INPUT:
Enter Principle amount
33345
Enter Rate on amount
10
Enter Time period in years
5
OUTPUT:
Simple Interest = 16672.500000
*/
Comments
Post a Comment