Write a program to obtain principal amount, rate of interest and time from user and compute simple interest. (S.I = (P * N * R) /100
Answers
Answered by
1
Answer:
Explanation:
#include<stdio.h>
#include<conio.h>
int main()
{
int Principal,Time;
float Rate;
float SI;
printf("\nEnter the Principal Amount(Rs.) : ");
scanf("%d",&Principal);
printf("\nEnter the Rate of Interest : ");
scanf("%f",&Rate);
printf("\nEnter the Time-Period : ");
scanf("%d",&Time);
SI = (Principal * Rate * Time)/100.0;
printf("\nSimple Interest = %.2f",SI);
return 0;
}
Similar questions