I'm going through a book by JB Dixit on C++. One of the examples has a line of code that I can't understand. The program constructs a pyramid of asterisks. Here is the for loop:
for(i=1;i<=5;i+ +)
{
for(i=1;i<=5;i+ +)
{
for(i=1;i<=5;i++)
{cout<<" ";
for(j=1;j<=5-i;j++)
cout<<' ';
for(j=1;j<=i;j++)
cout<<" *";
Comment