#include /* This program shows problems that come from confusing assignment with comparison */ int main( void ) { int quit, num, square; num = 1; quit = 0; while (quit = 0) /* Oh dear; this is always false */ { /* the body of this while loop will never be executed */ square = num * num; printf( "Square of %d=%d\n", num, square ); if ( num = 10 )/* Oh dear; this is always true */ quit = 1; num++; } }