C
chriswo2k
hello
whats the best way to make a number equal to a bigger number?
so say we have:
int one = 1;
int two = 2;
int three = 3;
int biggest;
is there a way to set biggest to whatever number (one, two, three) is biggest?
all I can come up with is a loooong if-else sequence. gotta be a way to do this in a line or two.
ChrisW
whats the best way to make a number equal to a bigger number?
so say we have:
int one = 1;
int two = 2;
int three = 3;
int biggest;
is there a way to set biggest to whatever number (one, two, three) is biggest?
all I can come up with is a loooong if-else sequence. gotta be a way to do this in a line or two.
ChrisW