Computer Science, asked by arneshff, 24 days ago

Write the syntax of FOR…NEXT loop with steps. Also write an example.​

Answers

Answered by itzblackhole
0

Explanation:

For counter [ As datatype ] = start To end [ Step step ]

For counter [ As datatype ] = start To end [ Step step ] [ statements ]

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ]

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ]

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ] [ Exit For ]

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ] [ Exit For ] [ statements ]

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ] [ Exit For ] [ statements ]Next [ counter ]

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ] [ Exit For ] [ statements ]Next [ counter ]Parts

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ] [ Exit For ] [ statements ]Next [ counter ]PartsPARTS

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ] [ Exit For ] [ statements ]Next [ counter ]PartsPARTSPart Description

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ] [ Exit For ] [ statements ]Next [ counter ]PartsPARTSPart Descriptioncounter Required in the For statement. Numeric variable. The control variable for the loop. For more information, see Counter Argument later in this topic.

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ] [ Exit For ] [ statements ]Next [ counter ]PartsPARTSPart Descriptioncounter Required in the For statement. Numeric variable. The control variable for the loop. For more information, see Counter Argument later in this topic.datatype Optional. Data type of counter. For more information, see Counter Argument later in this topic.

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ] [ Exit For ] [ statements ]Next [ counter ]PartsPARTSPart Descriptioncounter Required in the For statement. Numeric variable. The control variable for the loop. For more information, see Counter Argument later in this topic.datatype Optional. Data type of counter. For more information, see Counter Argument later in this topic.start Required. Numeric expression. The initial value of counter.

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ] [ Exit For ] [ statements ]Next [ counter ]PartsPARTSPart Descriptioncounter Required in the For statement. Numeric variable. The control variable for the loop. For more information, see Counter Argument later in this topic.datatype Optional. Data type of counter. For more information, see Counter Argument later in this topic.start Required. Numeric expression. The initial value of counter.end Required. Numeric expression. The final value of counter.

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ] [ Exit For ] [ statements ]Next [ counter ]PartsPARTSPart Descriptioncounter Required in the For statement. Numeric variable. The control variable for the loop. For more information, see Counter Argument later in this topic.datatype Optional. Data type of counter. For more information, see Counter Argument later in this topic.start Required. Numeric expression. The initial value of counter.end Required. Numeric expression. The final value of counter.step Optional. Numeric expression. The amount by which counter is incremented each time through the loop.

For counter [ As datatype ] = start To end [ Step step ] [ statements ] [ Continue For ] [ statements ] [ Exit For ] [ statements ]Next [ counter ]PartsPARTSPart Descriptioncounter Required in the For statement. Numeric variable. The control variable for the loop. For more information, see Counter Argument later in this topic.datatype Optional. Data type of counter. For more information, see Counter Argument later in this topic.start Required. Numeric expression. The initial value of counter.end Required. Numeric expression. The final value of counter.step Optional. Numeric expression. The amount by which counter is incremented each time through the loop.statements Optional. One or more statements between For and Next that run the specified number of times.

Similar questions