Write a program for simple intrest in c language
Program:-
#include<stdio.h>
#include<conio.h>
main()
{
int pa,rate,time,SI;
clrscr();
printf("enter the principle amount");
scanf("%i",&pa);
printf("enter the rate of interest");
scanf("%i",&rate);
printf("enter the time ");
scanf("%i",&time);
printf("simple intrest is %i",(pa*rate*time)/100);
getch();
}
No comments:
Post a Comment