Module: Binary shifts (C++)


Problem

2/4

Calculating the modulus of a number without using a conditional operator

Problem

Given a number x. Compute the absolute value of the number x without using a conditional operator.

Add the missing piece of code to the program.