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

does alexander the great deserve any credit for the development and spread of the pythagorean theorem
I NEED HELP FAST!! ​What is the best estimate for this sum? 1/8+1/6 A. The sum will be close to 1/4. B. The sum will be close to 1/2. C. The sum will be close t
Darren is 4 years younger than his sister Danielle. The sum of Darren’s age 4 years ago and / of Danielle’s age at that time is 7. How old is Danielle now
Which is most likely to result at a river basin when a large amount of snow melts at the beginning of spring? A Surface water and groundwater levels increase. (
PLEASE HELP QUICK!!!
Who was the poetry of 'Tears, Idle Tears?​
Pl help it’s for a grade I will give you Brainly
What hampered Thomas Jefferson from declaring all-out war against Britain after the Chesapeake incident? * A.Thomas Jefferson was Quaker B. Soldiers in the Ame
The box at the right is a cube with edges that measure 2 feet. The sides of the triangle inside the cube are a diagonal of a face, an edge, and a segment with e
What is the absolute value of -3.75