Browse Source

docs(digitlen):fix readme

pull/2061/head
miguel 1 year ago committed by MSilva95
parent
commit
5336c63959
  1. 10
      subjects/digitlen/README.md

10
subjects/digitlen/README.md

@ -4,7 +4,7 @@
Write a function `DigitLen()` that takes two integers as arguments and returns the times the first `int` can be divided by the second until it reaches zero. Write a function `DigitLen()` that takes two integers as arguments and returns the times the first `int` can be divided by the second until it reaches zero.
- The second `int` must be between ***2*** and ***36***. If not, the function returns `-1`. - The second `int` must be between **_2_** and **_36_**. If not, the function returns `-1`.
- If the first `int` is negative, reverse the sign and count the digits. - If the first `int` is negative, reverse the sign and count the digits.
### Expected function ### Expected function
@ -39,8 +39,8 @@ And its output:
```console ```console
$ go run . | cat -e $ go run . | cat -e
3 3$
7 7$
2 2$
-1 -1$
``` ```

Loading…
Cancel
Save