# Multiplication using for loop

Page 1 of 1

## 1 Replies - 8787 Views - Last Post: 10 March 2010 - 04:18 AMRate 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=161067&amp;s=6ebb6ee9a136b4cf52dca6795decb290&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 ozakinspiron

Reputation: 0
• Posts: 1
• Joined: 10-March 10

# Multiplication using for loop

Posted 10 March 2010 - 03:33 AM

hi i have a project and i want a reference how to make a multiplication table using for loop.,pls help me.,thank you
Is This A Good Question/Topic? 0

## Replies To: Multiplication using for loop

### #2 Dogstopper

Reputation: 2965
• Posts: 11,222
• Joined: 15-July 08

## Re: Multiplication using for loop

Posted 10 March 2010 - 04:18 AM

But, here's the algorithm:
```for each row with variable i
for each column with variable j
print (i+1)*(j+1)

```

As you can see, by multiplying the current row by the current column, you get a multiplication table. please not that i and j are normal for loop variables that begin at 0, so we increment both by 1 before beginning (So there is not a row of 0's