The elementary approach for
exchanging the contents of two memory registers,
A and B,
is to declare a third register, say,
When three consecutative "Exclusive-Or" operations
are performed on the contents of two memory registers,
the effect is to exchange the contents of the two memory registers.
continue onto the Second Assignment...
Enter a value for A, B, and then click Exchange.
[ Introduction ][ Theorem ]
[ First Assignment ][ Second Assignment ][ Third Assignment ]
[ Non-Numerical Arithmetic ][ Boundary Mathematics ]
[ Java Meets the Laws of Form ][ Form and Substance ]