This preview shows page 1. Sign up to view the full content.
Unformatted text preview: after 2 iterations after 3 iterations after 4 iterations x 1 3 4 7 11 y 3 4 7 11 18 z 4 7 11 18 29 #include <stdio.h> int main() { int x = 1; int y = 3; int z = 4; while( 0 == 0 ) { if( z > 18 ) break; x = y; y = z; z = y + x; /* what are the values of x, y and z here? */ } return 0; }...
View Full
Document
 Spring '11
 aren

Click to edit the document details