Java Programming : Last digit
Example
Input
25
Output
5
Required to Know
Use of Variables, Use of different operators like assignment or arithmetic operators, Use of functions like System.out.print(), and Use of Data types.
Steps
Take a digit as input from the user.
Use the mo...
thecodingcoder.hashnode.dev1 min read