Computing Simple Interest Using C
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int p,r,t,si=0;
printf("enter the value of p,r,t");
scanf("%d,%d,%d",&p,&r,&t);
si=p*r*t/100;
printf("simple intrest is %d",si);
getch();
}
Comments
Post a Comment