Program to calculate simple interest (With return, with arguments)

#include
#include
main()
{
double sint(double,int,int);
double p,si;
int r,t;
clrscr();
cout<>p;

cout<>r;

cout<>t;

si=sint(p,r,t);

cout<<"n calculated simple interst is:"<<si;
getch();
}
double sint(double x,int y,int z)
{
double k;
k=(x*y*z)/100;
return(k);
}

Leave a reply