Calculate sign of divisor i . e . , sign will be negative either one of them is negative only iff otherwise it will be positive
sign = ( - 1 if ( ( dividend < 0 ) ^ ( divisor < 0 ) ) else 1 ) ; NEW_LINE