
Patrick B. answered 04/25/21
Math and computer tutor/teacher
why not just copy and paste each one
into main(), run it, and observe what happens????
(a) output is 1 11 21 31 41 51 61 71 81 91
(b) will not execute at all because the test condition
10<10 fails the first time
(c) Infinite loop... displays 250 until program process
is terminated (CONTROL-C); the value of x is not
changed in the loop
(d) The output is 2 4 16
note that upon 3rd iteration 16*16 = 256 > 200, so
test condition fails
(e) output is bbbbbabbbbb