Find simple interest
main()
{
int p, n ;
float r, si ;
p = 1000 ;
n = 3 ;
r = 8.5 ;
si = p * n * r / 100 ;
printf ( "%f" , si ) ;
}
Output :
255.000000
This blog is for basic programming tutorial. Mostly programs of c and c++ programming are available here .
Comments
Post a Comment