Function to implement booth 's algo
static void boothAlgorithm ( int br [ ] , int qr [ ] , int mt [ ] , int qrn , int sc ) { int qn = 0 ; int [ ] ac = new int [ 10 ] ; int temp = 0 ; System . out . print ( "qn	q[n+1]		BR		AC	QR		scNEW_LINE"); System . out . print ( " TABSYMBOL TABSYMBOL TABSYMBOL initial TABSYMBOL TABSYMBOL " ) ; display ( ac , qr , qrn ) ; System . out . print ( " TABSYMBOL TABSYMBOL " + sc + "NEW_LINE"); while ( sc != 0 ) { System . out . print ( qr [ 0 ] + " TABSYMBOL " + qn ) ;