Please help to solve this problem.....i am using c++ programming language....
the output of the problem is....


i only have this...
help me plsss....... #include <iostream>
using namespace std;

int main()
{


int a, b, c, e, i, j, k, m;
int z=1;
int n=10;

for (a = e = m = 1; n >= a; e++, m++, n--) {
for (b = 1; n > b; b++)
cout << " ";
for (c = 1; 2*e - 1 >= c; c++)
cout << e;
cout << endl;
}

cin.get();
cin.get();
return 0;

}

kiryoku,

As the output (image) shown in OP the inner loop must be repeated in 1, 3, 5, 7 .. times.

for(m=1,i=1;i<=10;i++,m+=2) {
      for(j=1;j<=m;j++) {
       // statements
     }
 }

sir, help me solve it plssss.....

commented: Whhheeeeehh!! -6

sir, help me solve it plssss.....

If people just posted the solution for you, how would you become a good programmer?

> sir, help me solve it plssss.....
He did help you, A LOT.

Do something for yourself, and replace // statements with I dunno, something simple like printing out the values of m and j