Discussion in 'C++' started by shah18, Oct 3, 2010.
how make this all pyramid in c++ 4.5
but decleare one loop
These are all very easy assignments. Where exactly are you stuck? Or are you just being lazy?
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???????????
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.
xpiotos plz give code of some assignment i will be post 1st n 2nd assignment
Separate names with a comma.