10176 - Ocean Deep ! - Make it shallow !!
Solution Description : Base conversion and modulus Compute (A[0]A[1]A[2]....A[n]) (base 2) modulo (R)10, denoted by (s)10 = (A[0]A[2]A[3]...A[n])2 mod (R)10 Simulate the modulo step by step using the following algorithm: s = 0; |
||||||||||