Opening Hours :7AM to 9PM
class Main { public static void main(String args[]) { int x=10,y=20,z=30 boolean p; p=x>y && x>z; System.out.println("p value is: "+(p)); } }Output:
class Main { public static void main(String args[]) { int x,y,z; boolean p; x=Integer.parseInt(args[0]); y=Integer.parseInt(args[1]); z=Integer.parseInt(args[2]); p=x>y && x>z; System.out.println("p value is: "+(p)); } }
import java.util.*; class Main { public static void main(String args[]) { int x,y,z; boolean p; Scanner s=new Scanner(System.in); System.out.println("Enter x,y,z values"); x=s.nextInt(); y=s.nextInt(); z=s.nextInt(); p=x>y && x>z; System.out.println("p value is: "+(p)); } }