Print Last Digit Problem

Print Last Digit Problem — ExecCode School DSA Practice

Solve the Print Last Digit problem on ExecCode. Free online school DSA practice in Variables & Output. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given the input needed to solve Print Last Digit. Your task is to the number 1234 is already given in the problem. Find only the last digit of this number. Print that one digit.

Examples

Input ; Output 4. Input ; Output 4

Constraints

0 <= N <= 10^6

Practice Print Last Digit free on ExecCode. Browse DSA problems, topic map, and placement guides.