Computer Science, asked by sindhuri7872, 6 months ago

FOR.and NEXT is which type of QBASIC statement

Answers

Answered by krrew
2

Answer:

FOR...NEXT Statement

Repeats a block of statements a specified number of times.

Syntax

FOR counter = start TO end [STEP increment]

  [statementblock]

NEXT [counter [,counter]...]

Description / Parameter(s)

counter A numeric variable used as the loop counter.

start and end The initial and final values of the counter.

increment The amount the counter is changed each time through the loop.

Example

FOR i% = 1 TO 15

 PRINT i%

NEXT i%

FOR i% = 7 to -6 STEP -3

 PRINT i%

NEXT i%

Similar questions