Program to calculate simple interest in c program
Program to calculate simple interest
yaha per * ye dena jaruri he warna error ayega or mene float use kiya he
#include
int
main ()
{
float p, t, r, si;
printf ("Enter p");
scanf ("%f", &p);
printf ("Enter t");
scanf ("%f", &t);
printf ("Enter r");
scanf ("%f", &r);
si = (p * t * r) / 100;
printf ("Simple int are= %f", si);
return 0;
}
Comments
Post a Comment