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

what is the number of skull bones and their attachments in an adult human?
help me with this pelases
This is balanced. True or false?
Kate bought 5 pounds of hamburger and 2 pounds of hot dogs and paid $28.50. Eric bought half the amount of hamburger and a fourth of the amount of hotdogs that
PLEASE HELP ASAP!!! HOW DO I DO THIS?
paano nagwakas ang gilingang bato?​
So I have this question I cannot figure out 3w+w2+1=10−w
A small bar of pure gold whose density is 19.3g/cm. Displaces 80 cm
If an airplane is flying at 1000ft, and dives 400ft, what elevation is it flying?
why did justinian claim poetically that hagia sophia’s gigantic dome seemed to hang suspended on a ""golden chain from heaven""?