Monday, July 2, 2018

4. WAP to calculate the Simple Interest.

#include<stdio.h>
#include<conio.h>
void main()
{
   int p;
   float r,t,si;
   p=10000;
   r=4.5;
   t=2.5;
   si=p*r*t/100;
   printf("Simple Interest = %.2f",si);
   getch();
}


OUTPUT:




Please have a look at the below video lesson posted on my YouTube channel:


No comments:

Post a Comment