public static int sumFromTo(int iStart,int iEnd){
  int iRes=0;
  for (int iCnt=iStart; iCnt <= iEnd; iRes+=iCnt++)   ;
  return iRes;
}

public static int sumFromTo ( int iStart , int iEnd ) { int iRes = 0 ; for ( int iCnt = iStart ; iCnt <= iEnd ; iRes += iCnt ++ ) ; return iRes ; }
returns the sum of a sequence of numbers in a specified range
