#include <iostream>
using namespace std;

double average(double n1, double n2)
{
    return (n1 + n2) / 2;
}

double average(double n1, double n2, double n3)
{
    return (n1 + n2 + n3) / 3;
}

int main()
{
    double a = average(1.0, 6.0);
    cout << "average(1.0, 6.0) = " << a << endl;
    double b = average(1.1, 2.2, 3.3);
    cout << "average(1.1, 2.2, 3.3) = " << b << endl;
}
