Program to calculate simple interest by using function (without return, with argument)

#include
#include
main()
{
void sint(int,int,int);
int p,r,t;
clrscr();

cout<>p;

cout<>r;

cout<>t;

sint(p,r,t);
}
void sint(int x,int y,int z)
{
int si;
si=(x*y*z)/100;

cout<<"n Calculate simple interest:"<<si;
getch();
}

Leave a reply