# Multiplication using for loop

Page 1 of 1

## 1 Replies - 6200 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=d42b7f295ab548d08a6f065770c8085d&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 ozakinspiron

• New D.I.C Head

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

• The Ninjaducky

Reputation: 2920
• Posts: 11,195
• Joined: 15-July 08

## Re: Multiplication using for loop

Posted 10 March 2010 - 04:18 AM

Please help you on what? You have *nothing* so far. I can help you better if you show your current attempt.

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
Was This Post Helpful? 0

Page 1 of 1

 .related ul { list-style-type: circle; font-size: 12px; font-weight: bold; } .related li { margin-bottom: 5px; background-position: left 7px !important; margin-left: -35px; } .related h2 { font-size: 18px; font-weight: bold; } .related a { color: blue; }