Sunday, 15 January 2012

Program To Find Simple Interest Using Class In C++


  #include<iostream.h>
    #include<conio.h>
    #include<math.h>
    class pawan
      {
private:
float x,y,z;
public:
{
x=p;
y=q;
z=r;
}
void display()
 {
float m,l,j,k;
m=(l*j*k/100);
cout<<m;
   }
     };
    main()
{
pawan a1;
clrscr();
float a,b,c;
cout<<"entaer numbers x,y,z=";
cin>>a>>b>>c;
a1. getdata(a,b,c);
a1.display();
getch();
}

No comments:

Post a Comment