Four bit adder: Difference between revisions

Content added Content deleted
(→‎{{header|PARI/GP}}: test -- actually I wrote a full test of all 2^8 possibilities when writing, but I don't see the point of recording that here)
Line 1,210: Line 1,210:
USER>W N1_" + "_N2_" + "_C_" = "_$P(T,"^")_" Carry "_$P(T,"^",2)
USER>W N1_" + "_N2_" + "_C_" = "_$P(T,"^")_" Carry "_$P(T,"^",2)
0110 + 1110 + 0 = 0100 Carry 1</pre>
0110 + 1110 + 0 = 0100 Carry 1</pre>

=={{header|MyHDL}}==

<lang MyHDL>PRINT "Four_bit_adder"</lang>


=={{header|OCaml}}==
=={{header|OCaml}}==