Finding the min value of the function
m = Math . Min ( CONS * suma + CONS * sumb , - CONS * suma - CONS * sumb ) ; m = Math . Min ( m , Math . Min ( CONS * suma - CONS * sumb , - CONS * suma + CONS * sumb ) ) ; Console . WriteLine ( ( M - m ) ) ; q -- ; } }