#include<iostream>
#include<conio.h>
class customer
{
public:
int billno;
double cost;
void bill()
{
cout<< “ Enter the bill number:”;
cin>>billno;
cout<<”Enter the cost value:”;
cin>>cost;
};
int main()
{
clrscr();
customer c,d,e;
c.bill();
d.bill();
e.bill();
cout<<”Billno”<<”\t<,”cost”<<”\n”;
cout<<c.billno<<”\t”<<c.cost<<”\n”;
cout<<d.billno<<”\t”<<d.cost<<”\n”;
cout<<e.billno<<”\t”<<e.cost<<”\n”;
getch();
return 0;
}
#include<conio.h>
class customer
{
public:
int billno;
double cost;
void bill()
{
cout<< “ Enter the bill number:”;
cin>>billno;
cout<<”Enter the cost value:”;
cin>>cost;
};
int main()
{
clrscr();
customer c,d,e;
c.bill();
d.bill();
e.bill();
cout<<”Billno”<<”\t<,”cost”<<”\n”;
cout<<c.billno<<”\t”<<c.cost<<”\n”;
cout<<d.billno<<”\t”<<d.cost<<”\n”;
cout<<e.billno<<”\t”<<e.cost<<”\n”;
getch();
return 0;
}