Zero division Exception .
if ( divisor == 0 ) { document . write ( " " ) ; return ; } if ( dividend == 0 ) { document . write ( a + " " + b + " " + 0 + " " ) ; return ; } if ( divisor == 1 ) { System . out . println ( a + " " + b + " " + sign * dividend + " " ) ; return ; }