← Back to Community

Profile icon
raghavm

# Multiply .css-ngje9o{padding-left:var(--space-4);padding-right:var(--space-4);padding-top:var(--space-2);padding-bottom:var(--space-2);color:var(--accent-orange-stronger);background-color:var(--background-higher);border-radius:var(--border-radius-4);font-family:var(--font-family-code);font-size:var(--font-size-default);}`#WEEKLY` Challenge:

## Hey guys! Ok, so this is my entry:.css-1q3m8ps{margin-left:var(--space-4);margin-right:var(--space-4);display:none;}.css-1gcl232{min-width:16px;min-height:16px;}

• Basically, I implemented a reducer-type function that keeps calling itself.
• The reducer simply adds the number back to itself and calls the said function again.
• This works because multiplication is repeated addition!

## My original idea:

• Originally, I was just going to divide by the reciprocal:
• e.g. `2 * 3 = 6` becomes `2 / (1/3) = 6`
• I thought this was too easy though, so I didn't.

### Comment for a cookie crunch crunch!

Voters
Profile icon
raghavm
hotnewtop
Profile icon
TheDrone7

You need to take user input instead of testing it yourself.

Profile icon
raghavm

@TheDrone7
oh epic will do

Profile icon
NoelB33

Profile icon
raghavm

@NoelBryan
shhhhhhh i fixed it now

Profile icon
NoelB33
Profile icon
raghavm
Profile icon
NoelB33

Also not sure if it counts but loops aren’t allowed at the bottom there’s a `for` loop

@raghavm