Write a method that returns the number of digits in an integer argument; for example, 23,498 has

Write a method that returns the number of digits in an integer argument; for example, 23,498 has

Write a method that returns the number of digits in an integer argument; for example, 23,498 has five digits. Using this method, write a program that repeatedly asks for input and displays the number of digits the input integer has. Stop the repetition when the input value is negative.