write a program to calculate and display simple interest by accepting value of P.R.T. through input.
Answers
Answered by
1
Answer:
#include <stdio.h>
int main()
{
float principle, rate, sinterest;
int time;
printf("Enter Principle Amount, Rate %% per Annum and Time\n");
scanf ("%f %f %d", &principle, &rate, &time);
sinterest = (principle * rate * time)/ 100.0;
printf ("Principle Amount = %5.2f\n", principle);
printf ("Rate %% per Annum = %5.2f%\n", rate);
printf ("Time = %d years\n", time);
printf ("Simple Interest = %5.2f\n", sinterest);
}.
this is the program
mark me Brainliest please
Similar questions