0
How do you validate to only input 5 digits number? If it's more than 5, then it tries again.
2 ответов
0
Where is your code bro?
https://www.sololearn.com/post/75089/?ref=app
0
If your number is a whole number and in a number type variable you can use division of the base type to calculate to determine length of the number. If it is in string format use stolen().
Ie
Get your number
Check to ensure it's not 0 and flip your negatives to a positive.
Set a counter variable
Divide your number by ten
Add one to your counter
Check for zero
Loop or have final answer.