Actionscript:

var a:int, b:int;


a = 0;

b = 0;


trace(int(!(a & b)));


a = 0;

b = 1;


trace(int(!(a & b)));


a = 1;

b = 0;


trace(int(!(a & b)));


a = 1;

b = 1;


trace(int(!(a & b)));


/*

outputs:

1

1

1

0

*/


/*

NAND

00 1

01 1

10 1

11 0

*/
I started reading "The Elements of Computing Systems: Building a Modern Computer from First Principles" By Noam Nisan and Shimon Schocken. So far it's a very fun read. They talk about the power of NAND in the first chapter....