1 st Operation
document . write ( " " + 1 + " " + N + " " ) ; document . write ( " " ) ; for ( i = 0 ; i < N ; i ++ ) { document . write ( - 1 * arr [ i ] * N + " " ) ; } document . write ( " " ) ; document . write ( " " ) ;