I have got a question to make the program of row and columns..I use c++..
I have to use - for loop
- upstream.h
- conio.h
Please help guys ..it should look like
1
101
10001
1000001
Please help .. It's urgent
Thanks in advance
This is not a homework site. We won't do your homework for you. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.
We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again. As it is impossible to find derivative of function without knowledge in arithmetics, you cannot do more complex tasks in programming without clear understanding of basics
Well I tried to solve it..here Is how tried it but not yet successfully
Int I,j,n;
For(I=1;I<=4;i++)
{
For(n=1;n<=4-i;n++)
Cout<<" ";
{
If(I>0)
Cout<<1;
For(j=1;j<2*i-1;j++)
Cout<<0;
Cout<<endl;
}
}
Getch();
}