Computer Science, asked by saiswastiparija8241, 1 year ago

Explain while loop with syntax and example.

Answers

Answered by aryankunalroy38
22

i hope it help you

In most computer programming languages, 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.

While Loop - syntax

1 while (<Condition expression>)

2 <Loop statement(s)>;

While loop Diagram

Answered by Anitanirola221
11

(1)The syntax for while loop is while(condition)                              statement {} .                                  (2)in while loop the program will be executing repeatedly as long as the condition is true.

Similar questions