import java.util.*;
public class maximum
{
public static void main()
{
System.out.println("ENTER THE TWO NUMBER TO CHECK THE MAXIMUM ONE");
Scanner a = new Scanner (System.in);
int b = a.nextInt();
int c = a.nextInt();
int d = Math.max(b,c);
System.out.println("MAXIMUM BETWEEN "+b+" and "+c+ " is " +d);
//MADE BY CodeWithParth
}
}
//Using the built in Math library, you will have two options:
//import the library and then use the function
//(this is useful when your are going to use other functions defined in
// java.lang.Math, such as "abs" or "min" ...)
import java.lang.Math;
public class MyClass {
public static void main(String args[]) {
int x=10;
int y=25;
int z= max(x, y);
System.out.println("The max between the two values is " + z);
}
}
//otherwise if you just need it once you can directly call
//the function from the library
public class MyClass {
public static void main(String args[]) {
int x=10;
int y=25;
int z= Math.max(x, y);
System.out.println("Sum of x+y = " + z);
}
}
import java.util.*;
public class maximum
{
public static void main()
{
System.out.println("ENTER THE TWO NUMBER TO CHECK THE MAXIMUM ONE");
Scanner a = new Scanner (System.in);
int b = a.nextInt();
int c = a.nextInt();
if (b>c)
{
System.out.println("MAXIMUM BETWEEN "+b+" and "+c+ " is " +b);
}
else if (c>b)
{
System.out.println("MAXIMUM BETWEEN "+b+" and "+c+ " is " +c);
}
else
{
System.out.println("BOTH ARE EQUAL");
}
//MADE BY CodeWithParth
}
}