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