Closed bhagyeshsp closed 1 week ago
The current wording is correct. The condition part of a loop tells us the condition that the loop keeps going. So i <= answer
means "keep looping while i is less than or equal to answer" which is the same as "loop until i is greater than answer".
Oops! Apologies for raising the false flag. I will have to double-triple check before raising the PR in the future. Thanks for the explanation.
The current explanation tells that the loop continues until the value of
i
is greater than the value ofanswer
. But in fact, the parameter condition isi <= answer
. Hence, the correction.Because
The incorrect interpretation of
i <= answer
condition is fixed.This PR
Issue
Closes #XXXXX
Additional Information
Pull Request Requirements
location of change: brief description of change
format, e.g.Intro to HTML and CSS lesson: Fix link text
Because
section summarizes the reason for this PRThis PR
section has a bullet point list describing the changes in this PRIssue
section