# matrix table using asterisk

Page 1 of 1

## 3 Replies - 2057 Views - Last Post: 13 November 2007 - 07:47 PMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=37360&amp;s=c91d6a6f8585bf956abb055dcc430d3b&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

Reputation: 0
• Posts: 43
• Joined: 27-September 07

# matrix table using asterisk

Posted 13 November 2007 - 06:53 AM

help me please...... in making matrix table using asterisk
if I inputted 2 for the row and 4 for column,
the output should be:
****
****

``` int row, col, y;
y = 0;
cout<<"Enter number of row"<<endl;
cin>>row;
cout<<"Enter number of column"<<endl;
cin>>col;
col = col - 1;
while(y < row){
cout<<"*"<<endl;
row--;
while(y < col){
cout<<"*";
col--;
}

```

Is This A Good Question/Topic? 0

## Replies To: matrix table using asterisk

Reputation: 0
• Posts: 43
• Joined: 27-September 07

## Re: matrix table using asterisk

Posted 13 November 2007 - 06:59 AM

by the way i should use only loop...
thnx

### #3 PennyBoki

• system("revolution");

Reputation: 53
• Posts: 2,335
• Joined: 11-December 06

## Re: matrix table using asterisk

Posted 13 November 2007 - 08:01 AM

Well what seems to be the problem?
Are you receiving some errors?

Reputation: 0
• Posts: 43
• Joined: 27-September 07

## Re: matrix table using asterisk

Posted 13 November 2007 - 07:47 PM

the problem is it does not show a table...

the row is correct, but the column don't do