void sq_root( int a, int & x ) { int odd, y; x=0; odd=1; y=1; while( y < a) { x = x + 1; odd = odd + 2; y = y + odd; } return; }