usestarcodebaconrbx
usestarcodebaconrbx usestarcodebaconrbx
  • 15-03-2020
  • Mathematics
contestada

How can you actually divide numbers without subtraction?

Respuesta :

farchinsung10
farchinsung10 farchinsung10
  • 15-03-2020

#include <stdio.h> #include <stdlib.h>

// Function to perform division (x / y) of two numbers x and y. // without using division operator in the code. int divide(int x, int y)

{ // handle divisibility by 0. if (y == 0)

{ printf("Error!! Divisible by 0"); exit(1);

} // store sign of the result.

int sign = 1; if (x * y < 0)

Answer Link

Otras preguntas

To receive AM radio, you want an RLC circuit that can be made to resonate at any frequency between 500 and 1650 kHz. This is accomplished with a fixed 3.83 µH i
If the percentage ionization of an 0.10 M acid is 3.0%, what is its pH 3.52 1.52 2.52 0.52
Write an expression for "the quotient of 9 and c."
Plz can someone at least help me with one!
If you don’t understand a word or phrase you should just skip over it because it doesn’t matter. A T OR B F
why dont guys get their period?
(2x^3-3x-2x)/(2x-3) Using long division
A conjecture and the paragraph proof used to prove the conjecture are shown. Drag an expression or phrase to each box to complete the proof.
18/6 = 17/t solving algebraic equations
A painter uses 1.2 liters of the paint to cover 1m2 of the wall. How much paint will he need to cover 7m2;? Pre-Algebraic explanation needed!!