check if sum of three consecutive integer is equal to n .
if ( i + i + 1 + i + 2 == n ) { Console . WriteLine ( i + " ▁ " + ( i + 1 ) + " ▁ " + ( i + 2 ) ) ; return ; } } Console . WriteLine ( " - 1" ) ; }