Cody

Problem 44858. Get the mean digit

Created by Jesús Zambrano in Community

Write a function that gives the mean digit (round towards nearest integer) of an input and positive number. For example:

x = 264  --> y = 4
x = 128  --> y = 4

Solution Stats

41.18% Correct | 58.82% Incorrect
Last solution submitted on May 16, 2019

Problem Comments