please explain this code to me
`
main()
{
int u,i;
for (u=1;u<=5;u++)
{
for (i=1;i<=u;i++)
cout<<i<<"\t";
cout<<endl;
}
}
OUTPUT:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
explain that how two loops are controlling this output someone explain it step by step how row by row output is obtained...for example in 3rd row when i=3 and we are couting "i" so tell me how 1 and 2 will also come with 3...i mean if cout "i" only then the output should be 3 only but i obtained output 1 2 3 how similarly for 4th and 5th row?????