Problem Statement
Explain what nested loops are and give an example.
Explanation
Nested loops are loops inside another loop. The inner loop runs completely for each iteration of the outer loop. They are often used for multidimensional arrays or patterns.
Code Solution
SolutionRead Only
for($i=0;$i<3;$i++){ for($j=0;$j<3;$j++){ echo $i.$j; } }