Program of multipication using inline function, C/C++ Programming

Assignment Help:

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

 

 


Related Discussions:- Program of multipication using inline function

Assigment, Hi is there any chance to get assignment for fresher tutor

Hi is there any chance to get assignment for fresher tutor

Displays the lower case and upper case alphabetical letters, Write a progra...

Write a program that displays both the lower case and upper case alphabetical letters using the following Format Lowercase        Uppercase a                        A

Matematic, how to make program c++

how to make program c++

Write a program that finds the minimum total number of she., Write a progra...

Write a program that finds the minimum total number of shelv, C/C++ Programming

Structures, how to define the structures

how to define the structures

Areaundercurve.c, Write a program to find the area under the curve y = f(x)...

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve betw   Solution:

Is probable to encompass virtual constructor? if yes, Is it probable to enc...

Is it probable to encompass Virtual Constructor? If yes, how? If not, Why?

Compute the net pay for employees - c program, Write a C# program to comput...

Write a C# program to compute the Net Pay for employees. The program is to have a Main method and two user-defined methods. The Main method is to input the employee's name (string)

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd