This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Y2  Z1 Z2\n"); printf("\n"); for (X1=0;X1<2;++X1){ //loops for the comparison values Y1 = !(X1  X2); Y2 = !X1 && !X2; for (X2=0;X2<2;++X2){ Z1 = !(X1 && X2); Z2 = !X1  !X2; //prints the values in the truth table printf("%d %d  %d %d  %d %d\n", X1, X2, Y1, Y2, Z1, Z2);} } return (0); }...
View
Full
Document
This note was uploaded on 08/06/2008 for the course EGR 261 taught by Professor Parikh during the Spring '08 term at Grand Valley State University.
 Spring '08
 Parikh

Click to edit the document details