Last Digit

Computer Mathematics Easy 2 views
Back to Questions

Problem Description

Print the last digit of an integer n (as a non-negative digit).

Input Format

One integer n.

Output Format

One digit 0-9.

Sample Test Case

Input:
-128
Output:
8

Constraints

|n|

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next