Garmin Interview Question

How to find the average of two numbers in code.