Dowhile int x 0 whilex 2 printfxdnx x x

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ,x); x = x + 1; } while x0 x1 x=0 x=0 while vs. do‐while int x = 0; while(x < 2) { printf(“x=%d\n”,x); x = x + 1; } while vs. do‐while int x = 0; while(x < 2) { printf(“x=%d\n”,x); x = x + 1; } x1 x1 x=0 x=0 x=1 while int x = 0; while(x < 2) { printf(“x=%d\n”,x); x = x + 1; } vs. do‐while while vs. do‐while int x = 0; while(x < 2) { printf(“x=%d\n”,x); x = x + 1; } x2 x=0 x=1 vs. do‐while int x = 0; while(x < 2) { printf(“x=%d\n”,x); x = x + 1; } x2 x=0 x=1 2 2/5/2014 while vs. do‐while int x = 0; while(x < 2) { printf(“x=%d\n”,x); x = x + 1; } while vs. do‐while int x = 0; do { printf(“x=%d\n”,x); x = x + 1; } while(x < 2); x2 x0 x=0 x=1 while vs. do‐while while vs. do‐while int x = 0; do { printf(“...
View Full Document

This document was uploaded on 03/21/2014.

Ask a homework question - tutors are online