1.

W a p to input two numbers and print the cube of greater number in Java program in blue J

Answer»

Heya mate....❤❤
import java.util.*;
CLASS Numbers
{
PUBLIC static void MAIN(String args[])
System.out.println("Enter two numbers");
int a=sc.nextInt();
int b=sc.nextInt();
if (a>b)
{
int C=a*a*a;
System.out.println("Cube of a"+c);
}
else
{
System.out.println("Cube of b"+c);
}
}
}
HOPE it helps you my friend..
Please mark it as Brainliest...



Discussion

No Comment Found