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

The first organisms that performed photosynthesis evolved about 2.2 billion years ago. During the next few million years, their actions caused which of these ev
Did the U.S successfully contain communism? Explain.
What is the scale factor of this dilation? (Graph uptop) (A.) 2 (B.) 7 (C.) 14 (D.) 1/2
Solve the equation. Write a justification for each step. 3= x/6 + 1 x=?
Which can be used to determine composition of a star
(a)How would you characterize the relationship between the hours spent on homework and the test scores? Explain.(What is happening as the hours of homework incr
1) I dyed my hair green because I wanted to make a statement. I didn't think that statement would be, "Search my backpack!" A police officer stopped me and said
I already know the error (and it was correct).all I need to know is what the value of mV is? Please show all work on how you got your answer
precautions taken when doing experiment on simple pendulum​
how did traders help islam spread