Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition.
Examples
Previous carry is 1 and x=y=1. Addition is 1 and carry is also 1.
Previous carry is 0 and x=y=1. Addition is 0 and carry is also 1.
Previous carry is 0 and x=1, y=0. Addition is 1 and carry is also 0.
You should maybe test all the truth table no ?
Try some logic... Instead of hard code...
It dseon't mettar waht oedrr the lrettes in a wrod are.
493 Solvers
Similar Triangles - find the height of the tree
156 Solvers
337 Solvers
167 Solvers
462 Solvers