import com.mtsystems.coot.String8;
import java.io.IOException;
import java.util.Scanner;
public class Q5 {
public static void main(String[] args) throws IOException, InterruptedException {
int a, b;
String8 op = new String8(1);
do {
new ProcessBuilder("title MMC").inheritIO().start().waitFor();
new ProcessBuilder("color 9a").inheritIO().start().waitFor();
System.out.print("Informe dois numeros inteiros: ");
a = STDIN_SCANNER.nextInt();
b = STDIN_SCANNER.nextInt();
System.out.println("m.d.c =>" + mmc2(a, b, b));
System.out.print("\nDeseja calcular outro m.m.c (S/N)?");
op.copyFrom(STDIN_SCANNER.next());
} while(op.get() == 's' || op.get() == 's');
new ProcessBuilder("Pause").inheritIO().start().waitFor();
}
public static int mdc2(int a, int b) {
if (b == 0) {
return a;
} else {
return mdc2(b, a % b);
}
}
public static int mmc2(int a, int binta, int b) {
int div;
if(b == 0) {
return a;
} else {
div = (a * b) / mdc2(a, b);
}
return div;
}
public final static Scanner STDIN_SCANNER = new Scanner (System.in);
}
Pra que serve essa String8?