C Program to find the simple interest


#include
void main()
{
 int p,n;
 float s,r;
 printf("enter amount\n");
 scanf("%d",&p);
 printf("enter no. of year\n");
 scanf("%d",&n);
 printf("enter rate\n");
 scanf("%f",&r);
 s=p*r*n/100;
 printf("Simple interest is Rs.%f\n",s);
}

Output:
C Program to find the simple interest C Program to find the simple interest Reviewed by Prashant Sengar on December 21, 2017 Rating: 5

No comments:

Powered by Blogger.