#include void calc(float, float, float, float&, float&); // prototype int main() { float firstnum, secnum, thirdnum, sum, product; cout << "Enter three numbers: "; cin >> firstnum >> secnum >> thirdnum; calc(firstnum, secnum, thirdnum, sum, product); // function call cout << "\nThe sum of the numbers is: " << sum << endl; cout << "The product of the numbers is: " << product << endl; return 0; } void calc(float num1, float num2, float num3, float& total, float& product) { total = num1 + num2 + num3; product = num1 * num2 * num3; return; }