// pgm19 functions with parameters // 10/5/16 // next step will be to return the value of the sum // and print it in main #include #include #include using namespace std; void printSum(int x, int y) { cout << "sum of " << x << " and " << y << " is " << x+y << endl; return; } int main() { int num1=5, num2=18; cout << "in main, before call: " << endl; printSum(1,3); cout << "in main, after call." << endl; printSum(num1, num2); return 0; } /* LAB ASSIGNMENT: Write two functions and call them from main. The first function should read in a person's name and print Hello name. The second function should accept three double values and print their sum. */