Write a program to produce following design by using "for" loop.
& & & & & & &
& & & & &
& & &
&
#include <iostream>
using namespace std;
int main()
{
int i, j;
for (i=0; i<4; ++i)
{
for (j=0; j<i; ++j)
cout<<" ";
for (j=0; j<6-2*i; ++j)
cout<<"& ";
cout<<"&"<<endl;
}
system("pause");
return 0;
}