/* Puzzle 1 : CS210 Enrichment * From "The C Puzzle Book" by Alan R. Feuer * Prentice-Hall, 1982 * * Ray Babcock, MSU-Bozeman Computer Science Department */ int main() { int x; x = - 3 + 4 * 5 - 6; printf("%d\n",x); /*operators 1.1*/ x = 3 + 4 % 5 - 6; printf("%d\n",x); /*operators 1.2*/ x = - 3 * 4 % - 6 / 5; printf("%d\n",x); /*operators 1.3*/ x = ( 7 + 6 ) % 5 / 2; printf("%d\n",x); /*operators 1.4*/ return(0); }