Advertisements
Advertisements
Question
Write down the syntax of a nested for loop.
Answer in Brief
Solution
for (initialization; condition; step value)
{ // body of outer loop
for (initialization; condition; step value)
{
// body of inner loop
}
// body of outer loop
}
shaalaa.com
Is there an error in this question or solution?