How To Multiply Or Devive Without Using "*" "/" This Sign's In JavaScript...? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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...?

12th Feb 2020, 12:54 AM
Sk Orko
Sk Orko - avatar
11 Answers
+ 7
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
12th Feb 2020, 5:30 AM
R💠🇮🇳
R💠🇮🇳 - avatar
+ 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
12th Feb 2020, 1:28 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 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.
12th Feb 2020, 1:33 AM
Sonic
Sonic - avatar
+ 4
One more thing : the word is 'divide' and not 'devive'.
12th Feb 2020, 2:49 AM
Sonic
Sonic - avatar
+ 2
This is a solution to a mathematical problem with a dash of logic
12th Feb 2020, 1:43 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
Try using an iterative algorithm Addition or Subtraction
12th Feb 2020, 1:11 AM
Da2
Da2 - avatar
+ 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
12th Feb 2020, 1:25 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 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.
12th Feb 2020, 2:41 PM
Jannik Müller
Jannik Müller - avatar
+ 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.
13th Feb 2020, 5:19 AM
Jagbir singh
Jagbir singh - avatar
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
12th Feb 2020, 4:06 AM
Da2
Da2 - avatar
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
13th Feb 2020, 4:40 AM
Ishan Shah
Ishan Shah - avatar