package HELLO;
import java.util.Scanner;
public class helloword {
// ======================== 【取最大值函数】
public static int max(int a,int b)
{
int MaxValue=0;
if(a>b)
{
MaxValue=a;
}
else
{
MaxValue=b;
}
return MaxValue;
}
public static void main(String[] args)
{
int c=5;
int d=8;
int f=max(c,d);
System.out.println(""+c+"和"+d+"的最大值是:"+f);
}
}