Correct option is A
Step-wise Solution (As per flowchart A ≥ 20)
Information Given in Question:
- Initial values: A = 100, S = 0
- Condition: Is A ≥ 20?
- If YES: S = S + A, then A = A − 40, repeat
- If NO: Output S, Stop
All Concept/Formula Used in Question:
- Loop executes as long as A ≥ 20
- Update rules:
Detailed Explanation (Iteration-wise):
Iteration 1:
- A = 100 (≥ 20)
- S = 0 + 100 = 100
- A = 100 − 40 = 60
Iteration 2:
- A = 60 (≥ 20)
- S = 100 + 60 = 160
- A = 60 − 40 = 20
Iteration 3:
- A = 20 (≥ 20) ← Condition still true because it is “≥”, not “>”
- S = 160 + 20 = 180
- A = 20 − 40 = −20
Iteration 4 (Check):
- A = −20 (≥ 20) → Stop and output S
Final Output: S = 180
