Given an example of nested loop in qbasic
Answers
Answered by
2
Answer:
Explanation: loop within another loop is called 'nested loop'. Note:outer loop begins first but ends last,whereas inner loop begins last but end first.
If a loop exists inside the body of another loop, it's called a nested loop. Here's an example of the nested for loop. // outer loop for (int i = 1; i <= 5; ++i) { // codes // inner loop for(int j = 1; j <=2; ++j) { // codes } .. } Here, we are using a for loop inside another for loop.
Explanation:
Similar questions