4.1k views
1 vote
Print 1 to 100 in visual basic .6

is this program in image true ?
or make ( next i ) after ( debuge. print ) ​

Print 1 to 100 in visual basic .6 is this program in image true ? or make ( next i-example-1
User Kirguduck
by
5.4k points

1 Answer

7 votes

Answer:

make ( next i ) after ( debug. print ) ​

Step-by-step explanation:

Its definitely, the above answer. DIM is used for defining a variable which is an integer here. Then the for loop has been used and this will run for 1 to 100 thus as we move under debug,print I. But Next I should come after. Hence first it will be Debug,print I and then the next I .

And hence, the above answer.

The full program will be:

SUB MAIN()

DIM I AS INTEGER

FOR I = 1 TO 100 STEP 1

DEBUG.PRINT I

NEXT I

END SUB

User Arun Sooraj
by
5.7k points