English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
1

can anyone help me how to write a c++ program to get the output like this:

* * * *
* *
* * * *

(use array and for)

2007-03-21 19:20:03 · 2 answers · asked by ct_nurani85 1 in Science & Mathematics Mathematics

the question wants me to use for and array..not just using cout<<"* * * *"<

2007-03-21 19:47:58 · update #1

2 answers

Try asking in the Programming category under the Computers main category on this site... more programmers are likely to see it there and I'm sure they'll help you out.

2007-03-21 19:58:35 · answer #1 · answered by theoryofgame 7 · 0 0

I don't think you need to uses array and for. Why not just

cout << "****" << endl << "**" << endl << "****" << endl;

2007-03-21 19:24:48 · answer #2 · answered by Puggy 7 · 1 0

fedest.com, questions and answers