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 ] ; Array . Clear ( ac , 0 , 10 ) ; int temp = 0 ; Console . Write ( " qn TABSYMBOL q [ n ▁ + ▁ 1 ] TABSYMBOL BR TABSYMBOL " + " TABSYMBOL AC TABSYMBOL QR TABSYMBOL TABSYMBOL sc STRNEWLINE " ) ; Console . Write ( " TABSYMBOL TABSYMBOL TABSYMBOL initial TABSYMBOL TABSYMBOL " ) ; display ( ac , qr , qrn ) ; Console . Write ( " TABSYMBOL TABSYMBOL " + sc + " STRNEWLINE " ) ; while ( sc != 0 ) { Console . Write ( qr [ 0 ] + " TABSYMBOL " + qn ) ;