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
solved How to get a right shifted number without actual calculation?
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
solved How to get a right shifted number without actual calculation?