**fig2_8.txt** /* 1*/ int /* 2*/ Max_Subsequence_Sum( const int A[ ], const unsigned int N ) /* 3*/ { /* 4*/ int This_Sum = 0, Max_Sum = 0, Seq_Start = 0; /* 5*/ for( int Seq_End = 0; Seq_End < N; Seq_End++ ) /* 6*/ { /* 7*/ This_Sum += A[ Seq_End ]; /* 8*/ if( This_Sum > Max_Sum ) /* 9*/ Max_Sum = This_Sum; /*10*/ else /*11*/ if( This_Sum < 0 ) /*12*/ { /*13*/ Seq_Start = Seq_End + 1; /*14*/ This_Sum = 0; /*15*/ } /*16*/ } /*17*/ return( Max_Sum ); /*18*/ }