#includestdio.h
int divide(int x, int y)
{
int count = 0;
int sign = ((x0)^(y0))?-1:1;
x = abs(x);
y = abs(y);
while (x=y)
{
x = x-y;
count++;
}
return sign*count;
}

Posted on by