How to find a no.'s last digit ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

How to find a no.'s last digit ?

25th Apr 2018, 4:41 PM
Prabhat
Prabhat - avatar
2 Answers
+ 9
x % 10 gives you the last digit of x. (Pronounced "x modulo ten")
25th Apr 2018, 4:46 PM
Schindlabua
Schindlabua - avatar
+ 7
thnks friends !!
27th Apr 2018, 7:30 AM
Prabhat
Prabhat - avatar