0% found this document useful (0 votes)
93 views1 page

Nested Loops in Basic Programming

This program uses nested FOR loops to print the values of variables I and J from 1 to 4. The outer FOR loop iterates I from 1 to 4, and the inner FOR loop iterates J from 1 to 4 for each value of I. The PRINT statement outputs the value of I and J separated by a comma on each iteration.

Uploaded by

Dr breakdown
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views1 page

Nested Loops in Basic Programming

This program uses nested FOR loops to print the values of variables I and J from 1 to 4. The outer FOR loop iterates I from 1 to 4, and the inner FOR loop iterates J from 1 to 4 for each value of I. The PRINT statement outputs the value of I and J separated by a comma on each iteration.

Uploaded by

Dr breakdown
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd

START

FOR I = 1 TO 4

FOR J = 1 TO 4

PRINT I,J

NEXT J

NEXT I

END

OUTPUT

11 1213 1421 2223 2431 3233 3441 4243 44

You might also like