Binary addition






Circuit for addition

Binary subtraction






Circuit for subtraction