Tuesday, December 17, 2013

blog 29

Blog 29

Work out the values of the variables after each loop runs.

var a = 5;
while (a< 3) {
       a = a - 1;
}



var b = 10
while (b < = 5) {
      b = b - 1;
}

7 comments: