#include "d:\Practice Programs\Puzzle Feuer\Puzzles\defs.h" void main() { int x, y=1, z; int a,b; x=y=0; while( y<10 ) ++y; x += y; PRINT2(d,x,y); x=y=0; while( y<10 ) x += ++y; PRINT2(d,x,y); y=1; while( y<10 ) { x = y++; z = ++y; } PRINT3(d,x,y,z); for( y=1; y<10; y++ ) x=y; PRINT2(d,x,z); for( y=1; (x=y)<10; y++ ) x=y; PRINT2(d,x,z); for( x=0, y=1000; y>1; x++,y/=10 ) PRINT2(d,x,y); } // Remember an 'else' is associated to the nearest upstream 'if'. // So this 'else' works with this 'if( y>0 )'. // 'y' is 1, so y<0 is faults, z=y<0 --> z = faults --. z = 0. // So 'z' gets 0 but the 'if' is not done as the final value // to be evaluated in the 'if( something )' --> if( 0 ). // Remember 'if( something )' the 'something' is the final value // resolved in the parentheses.