Tuesday, June 5, 2007

Question 15

When the algorithms given by the following two flowcharts are executed for positive integer M, we want to make the resulting value of x the same in both cases. Which of the following conditions should be placed in box a in order to do this?


a. n > M
b. n > M + 1
c. n > M - 1
d. n < M


No comments: