Problem 44858. Get the mean digit
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
Problem Comments
-
2 Comments
William
on 1 Mar 2019
Test Suite problem #4 has an incorrect value.
Fabio Squizzato
on 12 Mar 2019
Test suite #4 is incorrect
Solution Comments
Show commentsProblem Recent Solvers35
Suggested Problems
-
Determine if a Given Number is a Triangle Number
365 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
801 Solvers
-
Let's get back to school, and create multiplication tables
195 Solvers
-
Back to basics - mean of corner elements of a matrix
393 Solvers
-
136 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!