Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   how make this all pyramid in c++ 4.5 (http://www.go4expert.com/forums/pyramid-cpp-45-t23473/)

shah18 3Oct2010 17:50

how make this all pyramid in c++ 4.5
 
1 Attachment(s)
how make this all pyramid in c++ 4.5



shah18 3Oct2010 17:54

Re: how make this all pyramid in c++ 4.5
 
but decleare one loop

xpi0t0s 4Oct2010 12:20

Re: how make this all pyramid in c++ 4.5
 
These are all very easy assignments. Where exactly are you stuck? Or are you just being lazy?

shah18 4Oct2010 17:11

Re: how make this all pyramid in c++ 4.5
 
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???????????

xpi0t0s 4Oct2010 19:11

Re: how make this all pyramid in c++ 4.5
 
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.

shah18 4Oct2010 20:40

Re: how make this all pyramid in c++ 4.5
 
xpiotos plz give code of some assignment i will be post 1st n 2nd assignment


All times are GMT +5.5. The time now is 08:51.