Write the definition for a function named times_ten. The function should have an integer parameter named rnum. When times_ten is called, it should display (and then return) the product of rnum times 10.
Is this correct?
int times_ten(int rnum)
{ int prod = 10*rnum;
cout << prod << endl;
return prod;
}