hi, am stuck on writting a java program that will output three integers in descending order(highest to lowest)...pleas e helppp...thks.. this is what i got and i think tht its so wrong..
public class HighToLow
{
public static void main(int a, int b, int c)
{
int max = a;
int med = b;
int low = c;
int temp;
if(a < b)
{
temp = a;
a = b;
b = temp;
}
}
}
public class HighToLow
{
public static void main(int a, int b, int c)
{
int max = a;
int med = b;
int low = c;
int temp;
if(a < b)
{
temp = a;
a = b;
b = temp;
}
}
}
Comment