What determines what type of precipitation will fall from a Cumulonimbus cloud?

first it cools andf dries