This paper presents a DNA algorithm based on linear self-assembly which gives the result of the modular subtraction operation of two nonnegative integers.For two n-bit nonnegative integers A and B,the algorithm gives the result of A-B mod 2 n.An extended borrow tag which indicates the relation of the minuend and the subtrahend is included in the resulting strand so that the pre-classification based on A>B or B>A is not required before the experiment.From the resulting strand,we can draw the information of o...