Problem 2455 · Easy

Average Value of Even Numbers That Are Divisible by Three

Sum the numbers divisible by six, then return their floored average or zero when none qualify.

Open the interactive visualisation