|
Post by Admin on Nov 19, 2012 17:36:45 GMT -5
Given two bits A and B. A can 0 or 1, similarly B can be 0 or 1. The various operations that can be performed are OR, AND, XOR etc etc. So the values range from 0000(0) - 1111(15). Write a function which generates 0000-1111 given two bits. Also provide the test cases for same.
|
|