How many times the following loops execute?
int m = 10, n = 7;
while(m % n >= 0)
{
m = m + 1;
n = n + 2;
}
Answers
Answered by
3
Answer:
Loop executes 4times
Explanation:
1st time- 10%7=3
2nd time- 11%9=2
3rd time- 12%11=1
4th time- 13%13=0
5th time-14%15=-1. (false)
Similar questions