State the general syntax of a nested loop.
Answers
Answered by
2
Consider a nested loop where the outer loop runs n times and consists of another loop inside it. The inner loop runs m times. Then, the total number of times the inner loop runs during the program execution is n*m.
Syntax of Nested while loop
while (condition1)
{
statement(s);
while (condition2)
{
statement(s);
... ... ...
}
... ... ...
Hope it helps.
Please mark it as brainleast answer. ♥
}
Answered by
0
A loop inside another loop called nested loop. considered a nested loop where the loop run n times and consist of another loop inside in it.the inner loop runs m times. then the total numbers of times the inner loop runs during the programme execution is n*m
I hope it will help you then plz follow me and mark me as brainlist
Similar questions
Science,
6 months ago
Chemistry,
6 months ago
Math,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago