+ 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
+ 7
12th Feb 2020, 5:30 AM
Rđ đźđł
+ 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
+ 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
+ 4
One more thing : the word is 'divide' and not 'devive'.
12th Feb 2020, 2:49 AM
Sonic
+ 2
This is a solution to a mathematical problem with a dash of logic
12th Feb 2020, 1:43 AM
Yaroslav Vernigora
+ 1
Try using an iterative algorithm Addition or Subtraction
12th Feb 2020, 1:11 AM
Da2
+ 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
+ 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
+ 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
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
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