Simple math question?

How do I find the largest of 3 numbers?

int dist1 = 8; int dist2 = 5; int dist3 = 10;

int maxValue = max(dist1,max(dist2,dist3));

See here: http://arduino.cc/en/Reference/Max