Write a method called firstDigit that returns the first (most significant) digit of an integer. For example, firstDigit(3572 ) should return 3. It should work for negative numbers as well; firstDigit(−9 47 ) should return 9 .
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.