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

1 Write the following equation in standard form: y+4= (x – 12) 3 PLEASE HELP MEE
Can someone double check my answer please !!
Expository writing, such a scientific essay, serves what two purposes?
Need a little help <33
GOOD NIGHT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! SEE YOU TOMMOROW! LOVE YOU ALL!!!!!!!!!!!!!!!!!!!!
Convert the following equation into slope-intercept form: -3+2y=8
Which expression can be used to find the product of 720? Question 2 options: (7 x 2) x (3 x 5) (8 x 9) x (2 x 5) (9 x 7) x (2 x 5) (9 x 8) x (3 x 5)
What belief would Booker T. Washington NOT support? a Job skills were the only things that would give African Americans equality. b Truth and knowledge would ca
was John brown justified in his violence in the name of abolition?​
Which one is it guys?