- #1
PrakashPhy
- 35
- 0
Could anybody help me find a one line function to calculate the remainder of a number when it is divided by 4
For example
A one line function to calculate the remainder when the number is divided by two looks like.
r= (1-(-1)^n)/2
Thank you in advance.
For example
A one line function to calculate the remainder when the number is divided by two looks like.
r= (1-(-1)^n)/2
Thank you in advance.