Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7007 - Сүүлийн цифр

Өгөдсөн тооны сүүлийн цифрийг ол.

Input

Бүхэл тоо өгөгдөнө. Int төрөл.

Output

Сүүлийн цифр.

Example

Input:
476
Output:
6

Нэмсэн:Bataa
Огноо:2011-05-10
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2022-09-30 05:20:34
yar htsub beeeeeeeee
2022-09-19 02:48:53
?
2022-05-06 04:18:12


Last edit: 2022-05-06 04:18:51
2022-03-27 07:21:47
#include<stdio.h>
int n,s,a1,a2,a3;
int main()
{
scanf("%ld",&n);
a1=(n/100);
a2=(n%100/10);
a3=(n%10);
s=a1+a2+a3;
printf("%ld",s);
return 0;
}
2022-03-23 09:25:54
#include <cstdio>
int main(){
int a,b;
scanf("%d",&a);
b=a%10;
printf("%d",b);
}
2022-03-21 05:31:34
zov hariu ni ali ni ym
2022-03-09 08:49:44
#include<stdio.h>

main ()
{
int n;
scanf("%d",&n);
printf("%d",n%10);
}
2022-02-28 08:09:53
hohoho
2022-02-15 13:52:47
yaj oloh be how aashaahguyu
2022-01-01 12:17:25
#include<stdio.h>

main ()
{
int n;
scanf("%d",&n);
printf("suuliin oron:%d",n%10);
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.