Page 15 - Samawat_Arsalan_Hyder_19_arid_855
P. 15

SAMAWAT ARSALAN HYDER                                                          19-ARID-855


                       d.putdata();

                       getch();

                       return 0;

               }



                                                  QUESTION NO 4


               #include<iostream>

               #include<conio.h>

               #include<stdlib.h>
               #include<string.h>

               #include<cstring>

               #include<iomanip>

               #include<cmath>

               using namespace std;


               class Sale

               {

                       float sale[3];

                       public:

                              void getdata()

                              {
                                     int x=1;

                                     while(x<=3)

                                     {

                                            cout<<"\nEnter Sales of Month"<<x<<": ";

                                            cin>>sale[x];
                                            x++;

                                     }
   10   11   12   13   14   15   16   17   18   19   20