how make this all pyramid in c++ 4.5

shah18's Avatar, Join Date: Oct 2010
Light Poster
how make this all pyramid in c++ 4.5


Attached Images
File Type: jpg praymid.jpg (116.8 KB, 2 views)
0
shah18's Avatar, Join Date: Oct 2010
Light Poster
but decleare one loop
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
These are all very easy assignments. Where exactly are you stuck? Or are you just being lazy?
shabbir like this
0
shah18's Avatar, Join Date: Oct 2010
Light Poster
first two i have done but 3rd 4th and 5th one i cant make bcoz i m new student in c++ so plz what can i do ?? use one loop and give reslut i cant do with one loop plz tel me how can i do???????????
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
You can do the 3rd by adding together the code for the 1st and 2nd, extend the loop and put an if statement in. Or loop from -X to +X and take the absolute value.

The 4th should follow easily from the 2nd, and the 5th from the 1st: whatever you do to display a line, just do it twice.

Post your code for 1st and 2nd if you're still stuck.
shabbir like this
0
shah18's Avatar, Join Date: Oct 2010
Light Poster
xpiotos plz give code of some assignment i will be post 1st n 2nd assignment