1.How to calculate simple interest in C.
#include<stdio.h>
void main()
{
int si,p=5,r=2,t=10;
si=(p*r*t)/100;
printf("Simple interest : %d",si);
}
Output :
Simple interest : 1
#include<stdio.h>
void main()
{
int si,p=5,r=2,t=10;
si=(p*r*t)/100;
printf("Simple interest : %d",si);
}
Output :
Simple interest : 1
No comments:
Post a Comment