#include<iostream>
void product (double a, double b) {
std::cout << "The product of " << a << " and "
<< b << " is " << a*b << std::endl;
}
int main () {
product (6, 7);
product (2, 21);
}
Output:
The product of 6 and 7 is 42
The product of 2 and 21 is 42