what is a nested loop?state the rules to write a nested loop in qbasic.
Answers
Answered by
5
In simple terms, we can say that Nested loop is loop within a loop.
Example of Nested loop in qbasic :
CLS
a$ = "****"
FOR i = 1 TO LEN(a$)
PRINT LEFT$(a$, i)
NEXT i
FOR j = 1 TO LEN(a$)
PRINT LEFT$(a$, i)
NEXT j
END
Example of Nested loop in qbasic :
CLS
a$ = "****"
FOR i = 1 TO LEN(a$)
PRINT LEFT$(a$, i)
NEXT i
FOR j = 1 TO LEN(a$)
PRINT LEFT$(a$, i)
NEXT j
END
Answered by
2
Explanation:
nested loop join is a naive algorithm that joins two sets by using two nested loops. Join operations are important for database management
Similar questions