← All problemsSign in

The Easy Game

Ayush, recently learnt a new game, where a player is supposed to be playing cricket, with the use of a book only. In each chance he is asked to open a random page and the last digit of the page number becomes his score. But, if last digit is "0", he is considered OUT. So, given the page number, can you output the score. Input: - Each line consists a number $N$, representing the page number. O

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start