Length of Number

Published by Someone1 in

Create a function that takes a number n and returns its length.

Examples

Length(10) ➞ 2

Length(5000) ➞ 4

Length(0) ➞ 1

Notes

N/A

Watch a quick demo on how Edabit works.