The Last Digit[LASTDIG] [SPOJ]

Question Link is :-1


My Solution Link is :-

I think my logic is correct. Why am i getting Wrong Answer.
Help Me.

Try

1
2 4
1 Like

Done. A silly mistake it would have been (onesonesones*ones)%10;. Thanks.

https://orcarjewelry.com/best-pearl-earrings-collection-features-pavoi-pearl-drop-earrings/
https://orcarjewelry.com/accessories/bulova-dress-watch-model-96p175/

https://orcarjewelry.com/best-turquoise-earrings-and-how-to-recognize-fake-turquoise/
https://orcarjewelry.com/accessories/coasion-blue-light-blocking-glasses-semi-rimless-clear-lens-computer-game-eyeglasses-eyewear-frame/
https://orcarjewelry.com/top-5-most-badass-skull-earrings/
https://orcarjewelry.com/jewelry-brand-of-the-month-boma-jewelry-and-boma-925-earrings/
https://orcarjewelry.com/womens-earrings/amoley-pkiooi-anime-hunter-x-hunter-cosplay-kurapika-earrings-ear-clips-red-gem-cosplay-propear-clip/
https://orcarjewelry.com/sun-star-galaxy-earrings-for-dreamy-star-girls/
https://orcarjewelry.com/womens-earrings/pura-vida-silver-wave-ear-cuff-or-climber-earrings-exclusive-design-925-sterling-silver-1-pair/
https://orcarjewelry.com/womens-earrings/silpada-soleil-compressed-turquoise-stud-huggie-hoop-earrings-in-sterling-silver/