English, asked by pushkar8397, 3 months ago


(e) Which of the following is used to increase or decrease the loop's control variable other than 1?
(1) FOR...NEXT
(ii) WHILE...WEND
(iii) STEP
(iv) UNTIL
(THIS QUESTION IS OF COMPUTER BUT I HAVE MARKED ENGLISH BECAUSE COMPUTER OPTION IS NOT GIVEN IN BRAINLY APP)​

Answers

Answered by tiwaritvisha134
0

Answer:

ht

If condition is True, all statements are executed until the Wend statement is encountered. Control then returns to the While statement and condition is again checked. If condition is still True, the process is repeated. If it is not True, execution resumes with the statement following the Wend statement.

While...Wend loops can be nested to any level. Each Wend matches the most recent While.

Tip

The Do...Loop statement provides a more structured and flexible way to perform looping.

Example

This example uses the While...Wend statement to increment a counter variable. The statements in the loop are executed as long as the condition evaluates to True.

VB

Dim Counter

Counter = 0 ' Initialize variable.

While Counter < 20 ' Test value of Counter.

Counter = Counter + 1 ' Increment Counter.

Wend ' End While loop when Counter > 19.

Debug.Print Counter

I hope it helps you

Similar questions