// B1.cpp #include using namespace std; template T findAvg(const T array[], int n) { if(n <= 0) return 0; int i; T sum = 0; for(i=0; i