aim write a program of multipication using inline


Aim: Write a program of multipication using inline function

class Multiply

{

          int x,y;

          public:

          void getdata();

          inline calculate(int a,int b)

          {

                   return(a*b);

          }

          void display();

};

void Multiply::getdata()

{

          cout<<"Enter the two numbers"<

          cin>>x>>y;

}

void Multiply::display()

{

          cout<<"Multiplication of "<Output:

 

Enter the two numbers

6 5

Multiplication of 6 and 5=30

 

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: aim write a program of multipication using inline
Reference No:- TGS0162078

Expected delivery within 24 Hours