首页 > 代码库 > Java练习题4_last-1_1043林大锐格平台

Java练习题4_last-1_1043林大锐格平台

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        int m , n;
        Scanner in = new Scanner(System.in);
        m = in.nextInt();
        n = in.nextInt();
        System.out.println(Min(m,n));
    }
    static int Min(int a,int b){
    	if(a<=b)return a;
    	else return b;
    }
    // Write your own code
    
    
}

 

Java练习题4_last-1_1043林大锐格平台