📜  gcd = 1 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:36.645000             🧑  作者: Mango

代码示例1
import java.util.Scanner;
public class   Euclid {
    static public void main(String[] argh){
        System.out.print("Enter two numbers: ");
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = input.nextInt();
        int TEMP = 0 ;
        int GCD = 0;
        int max = a>b?a:b;
        int min = a