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