#include "stdafx.h" #include using namespace std; double avg3(int a, int b, int c); // just define the prototype // of the function. Leave the actual implementation (body) // of the function for later. int main() { double x, y, z; int d=1, e=2, f=3; x = avg3(d, e, f); y = avg3(1.23, 6, 5.6); return 0; } // the actual implementation of avg3 double avg3(int a, int b, int c) { double sum; sum = a + b + c; a++; return sum / 3.0; }