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

10/3 as a mixed number
Is the difference of two positive rational number always positive explain
how does rock cycle impact the lithosphere?? plzzz HELP.!!!
Please help name the property that each statement illustrates X + 12 = 12 + x
What is the source of energy for many processes of earths surface. Explain .
7,000 is 10 times as much as what number?
8 9/10 into an improper fraction in lowest terms
What did the structure of the CCC resemble? i have it down to either a military organization or a business but cant choose between the two.
which island was concidered a stepping stone for an invasion of the Japanese mainland
Mainland China is controlled by the Communists whereas Taiwan is controlled by