Pergunta de entrevista da empresa Garmin

How to find the average of two numbers in code.