[Solved] How to get a right shifted number without actual calculation?
[ad_1] You aren’t going to be able to avoid some calculation. int k = n % 10; will get you the last decimal digit, as that assignment gives k the remainder of division by 10. 3 [ad_2] solved How to get a right shifted number without actual calculation?