Monday, 16 January 2012

Program To Find Simple Interest Using Function In C++


#include<iostream.h>
#include<conio.h>
void sum(int x,int y,int z);
main()
{
clrscr();
float p,r,t,m;
cout<<"enter numbers=";
cin>>p>>r>>t;
sum(p,r,t);
getch();
}
void sum(int x,int y,int z)
{
float m;
m=(p*r*t/100);
cout<<m;
}

No comments:

Post a Comment