Integer average with DIV

Complete the previous lesson to unlock this one.

Back to the path

Integer average with DIV

Level 12: Formulas. An average of integers on Paper 2 is often a whole number. DIV throws away the fraction.

Read three integers. Output their integer average:

(A + B + C) DIV 3

Example: input 4, 5, 6 → 5. Output the number only.