edited by
5,712 views
13 votes
13 votes

How many times is the comparison $i \geq n$ performed in the following program?

int i=85, n=5;
main() {
    while (i >= n) {
        i=i-1;
        n=n+1;
    }
}
  1. $40$
  2. $41$
  3. $42$
  4. $43$
edited by

5 Answers

Answer:

Related questions

4 votes
4 votes
2 answers
5