#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)