## first digit of a number

In this article, we are going to write code for finding the first digit of a number. Example:- if number = 7122344 then output will be 7. Steps:- Java code to find last digit of a number:- Output:- You can use the same logic to find the first digit of a number using other programming … Read more