108k views
5 votes
WAP to input principle amount, number of year and rate of interest from user and calculate the simple interest.

#include<stdio.h>
#include<conio.h>
void main()
{
float p,r,t,SI;
printf ("enter the principle:");
scanf ("%f", &principle amount);
printf ("enter the rate of interest per anum:");
scanf ("%f", &rate);
printf (enter the time period of interest in years :");
scanf ("%f", &time);
si =(p×r×t)/100;
printf ("simple intesrest:%f",SI);
getch();
}

}​

1 Answer

4 votes

Answer:

Step-by-step explanation:

jnmmnm

User Hiattp
by
8.9k points