In your lab, you are told to implement "add", "two" (Flips the bits and increments by 1), "subtract", "multiply", and "divide"
only with logical operations.
However, if you manage to implement some of the functions, then you are allowed to use them in place of the "+=", "-=", etc operations.
You worked hard to implement them, and they do the operations strictly through logical operators.
Hence why they are allowed.
e.g., If you have implemented your "add" function, you may use it to increment a for loop like:
Code (C++)
for (int i = 0; i < 32; i = Add(i, 1)) {
//Your code here
};