Notifications
Clear all
while loop
0
30/11/2022 3:57 am
Topic starter
i have a doubt in while loop
Answer
Add a comment
Add a comment
3 Answers
0
06/03/2023 10:07 am
While loop is a type of loop that exists in most programming languages, it is used to repeat a set of statement as long as a condition is true
while(condition) { statement 1; statement 2; }
here the statements inside the block will execute as long as the given `condition` is true, when it becomes false the loop will stop executing.
Add a comment
Add a comment
0
20/07/2023 5:03 pm
A while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition. The while loop can be thought of as a repeating if statement.
Add a comment
Add a comment
0
22/08/2023 3:57 pm
while loops are used to continue the loop as long as a particular condition is true
Add a comment
Add a comment
Forum Information
- 22 Forums
- 1,958 Topics
- 5,268 Posts
- 0 Online
- 1,229 Members
Our newest member: Sprinklerbvq
Latest Post: Hi Aptcoder
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed