Computer Applications
Related Questions
Observe the following code and find that how many times will the loop execute?
int sum = 0, score = 0; double t; do { score = score + 1; sum = sum + score; } while(score <= 3); t = sum / 3;Rewrite the following code using for loop.
int i = 1; int d = 5; do { d = d * 2; System.out.println(d); i++; } while(i <= 5);Name the operators listed below.
- ?:
- &&
- <=
- ++