All pastes #42529 Raw Edit

Mine

public text v1 · immutable
#42529 ·published 2006-02-21 03:13 UTC
rendered paste body
#include <iostream>

using namespace std;

int numGet(int a, int b, int c);

int numAverage(int a, int b, int c);

main()
{

int a, avg, b, c;

numGet(a, b, c);

numAverage(a, b, c);

        cout << "The average of the numbers you entered is " << avg << ".\n";

return 0;
}

int numGet( int a,  int b, int c)
{
        cout << "Please enter 3 numbers: ";
        cin >> a >> b >> c;

        return a, b, c;
}

int numAverage(int a, int b, int c)
{

        int avg, d;
        d = a + b + c;
        avg = d/3;

        return avg;
}