HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


50888 - Extracting Digits

Volume problems

• 50882 - Say Hello
• 50883 - Win or Lose
• 50886 - Even or Odd
• 50894 - ASCII Codes
• 51111 - Even Numbers
• 50892 - Even Numbers
• 50907 - Second Largest
• 50891 - Smallest Number
• 50888 - Extracting Digits
• 50893 - Print All Numbers
• 50905 - Convert KPH to MPH
• 50881 - Exchange the Values
• 50903 - Basic Math Calculator
• 50885 - Calculate the Average
• 50887 - Average of Test Scores
• 50895 - Hours Minutes and Seconds
• 50902 - Translate Score into Grade

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Extracting Digits

Create a program that extracts the rightmost digit of a number. 

Input: In the first line you will get a positive integer number.

Output : The last digit of the number.

Sample Input1:

Sample Input2:

567

300

Sample  Output1:

Sample  Output2:

7

0

 

Для отправки решений необходимо выполнить вход.

www.contester.ru