68 447
Assignments Done
Successfully Done
In December 2018

Answer to Question #58988 in C++ for Sherlynn

Question #58988
//write a program which reads 2 numbers and then calls a functions
//the function returns the products of 2 numbers supplied to it
// the program will display the result obtained through the function call
Expert's answer
#include <iostream>

using namespace std;

int get_product(int &, int &);

int main() {
int a, b;
cout << "Please, input two numbers\n";
cin >> a >> b;
cout << "The product of this numbers is: " << get_product(a, b) << endl;
return 0;

int get_product(int &a, int &b) {
return a * b;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions