+ 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...?
11 Antworten
+ 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
+ 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'.
+ 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