(Reuters) - Micron Inc posted its first profit in eight quarters due to higher prices for its memory chips used in personal computers, mobile handsets and tablet devices.