#include #include #include using namespace std; //myAlgo_max1.cpp void deviation( int ); static int total1, total2; int mean ; int main() { int n1[10] = { 69 ,60,63,61,65,64,71,70,68,64 }; cout<<"\n Arrays Length : " < Vint1( n1, n1+10 ); // copy of n1 vector::iterator it; // iteration cout <<"\n ------Using vector :------\n "; for(it= Vint1.begin(); it !=Vint1.end(); it++) { cout <<" "<< *it; total1 = total1 + *it; } mean = total1/10; cout <<"\n \t total1 " << total1 << "\n \t avg "<< mean; cout<<"\n using array deviation \n"; for(it= Vint1.begin(); it !=Vint1.end(); it++) { deviation(*it); } return 0; } void deviation( int value ) { int x = max(mean, value); cout <<"\n max(mean, value) : "<