Solution - Chapter 8 - Iterative Construct
Solution - Chapter 8 - Iterative Construct
II] Assignment-
4. p=200
if(p<100) the loop breaks p=p-20
1. 200<100 p=180
2. 180<100 p=160
3. 160<100 p=140
4. 140<100 p=120
5. 120<100 p=100
6. 100<100 p=80
7. 80< 100 the loop breaks
Ans: The loop will execute 7 times.
OUTPUT: 80