answersLogoWhite

0

class asmall

{

public static void main(String[] args)

{

int x=500, y=70, z=3000;

if (x<y && x<z)

{

System.out.println("x is SMALLEsT");

}

else

if(z<y && z<x)

{

System.out.println("z is SMALLEST");

}

else

{

System.out.println("y is SMALLEST");

}

}

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you get the range of a data set?

Take the largest number minus the smallest number to determine the range.


Determine the smallest 3-digit number exctly divisible 6 8 and12?

How about: 120


What is the prime number that its digits adds up to the smallest prime number?

The smallest prime number, of course, is 2. The smallest prime number whose digits add up to 2 is, of course, 2. The next-smallest is 11. It is left as an exercise for the reader to determine whether the other numbers whose digits add up to 2 (e.g. 101, 1001, 10001) are prime.


What does range find?

To find range in a number set, subtract the smallest number from the largest. This is used to determine the size of the range and how close the numbers are to one another.


Which is the smallest natural number?

1 is the smallest natural number.


What is the smallest mersenne number?

The smallest Mersenne number is 2.


What is the smallest perfect number?

the smallest perfect number is 1


What is smallest odd number?

The smallest odd number is 1.


Which smallest whole number?

1 is the smallest whole number


What is the two digit small number?

-99 is the smallest two digit number.-99 is the smallest two digit number.-99 is the smallest two digit number.-99 is the smallest two digit number.


Is the number 0 the smallest number?

no 0 isn't the smallest number because there are negative numbers so there really is no biggest number nor smallest number


Which natural number is the smallest odd number?

1 is the Natural number which is the smallest Odd number.