Code
Loading editor...
Tap Analyze to see visualization
Click Analyze to visualize
See step-by-step execution, variables, and output
Variables
Run code to see variables
Output
Console output will appear here
Click Analyze to visualize
See step-by-step execution, variables, and output
Run code to see variables
Console output will appear here
Simulate binary addition without arithmetic operators. XOR gives the sum bits without carry, and AND shifted left gives the carry bits. Repeat until there is no carry left.
XOR performs addition ignoring carries, while AND identifies positions where both bits are 1 (carry). Shifting the carry left and repeating propagates all carries to completion.
Updated Feb 2026