+6

How To Multiply Or Devive Without Using "*" "/" This Sign's In JavaScript...?

How To Multiply Or Devive Without Using "*" "/" This Sign's In JavaScript...?

2/12/2020 12:54:02 AM

Sk Orko

12 Answers

New Answer

+6

Check this article this will help you to know about datatypes and operators used in Javascript https://medium.com/@howtocodejs/javascript-data-types-operators-78576771de32

+5

30÷5=6 == 30 - 5 - 5 - 5 - 5 - 5 - 5. Your code must count how many times have we taken away the number 5 20 ÷ 10 = 20 - 10 - 10 - how many times have we taken away the number 10

+4

Sk Orko are you asking this because it was part of a quiz? Otherwise there is usually no problem using * and / for most cases.

+4

One more thing : the word is 'divide' and not 'devive'.

+3

* is many + and, / is * thus +. Multiplication: i*j=i+i+i+i...+i (add i, j times) or i*j=j+j+j+j...+j (add j, i times) Example: 2*3=2+2+2=6 (add 2, 3 times) or 2*3=3+3=6 (add 3, 2 times) Division: 12/5=2*5+12%5=2+2+2+2+2 +12%5

+2

This is a solution to a mathematical problem with a dash of logic

+1

Try using an iterative algorithm Addition or Subtraction

+1

bluesea how in your example division I can insert enother numbers? It will be right answer? Your formula must be exellent for different values

+1

Multiplication: Add a number repeatedly: e.g: 6*7: Add 7 to a variable for 6 times. Division: Subtract the value until your number is less than or equal to zero: e.g: 30/5 subtract 5 from 30 until your result is equal to or less than zero.

+1

Multiplication: Add a number repeatedly: e.g: 6*7: Add 7 to a variable for 6 times. Division: Subtract the value until your number is less than or equal to zero: e.g: 30/5 subtract 5 from 30 until your result is equal to or less than zero.

0

What is more interesting is complement addition that is also subtraction. All that is required is to be able perform addition. All other arithmetic operation can be done by additon

0

you can multiply using this function function mul(x, y) { return ("a").repeat(x).repeat(y).length } division 13/4 13 – 4 = 9 9 – 4 = 5 5 – 4 = 1