Algoritmo de Booth Java
Algoritmo de Booth Java
Algoritmo de Booth Java
Scanner;
while (ciclo != 5) {
desplaza();
if (mm.equals(m)) {
array[0][i + 1] = 1;
}
if (M.charAt(i) == '0') {
array[1][i + 1] = 0;
} else {
array[1][i + 1] = 1;
}
}
sumaP(array);
Ax = array[4][1] + "" + array[4][2] + "" + array[4][3] + "" + array[4][4] + "";
}
}
array[3][array.length - 1] = 1;
sumaP(array);
Ax = array[4][1] + "" + array[4][2] + "" + array[4][3] + "" + array[4][4] + "";
}
}
}
}