You are on page 1of 1

#include <stdio.

h> int main() { int a, b, max, min, results, count; max = 2000000000; min = -2000000000; results = 0; count = 0; printf("Enter integer numbers 'a' and 'b' for division a/b: "); scanf("%d %d", &a, &b); if (b == 0) { printf("Division by zero is not allowed!"); printf("\n"); return 0; } while (1) { results = a - b; count++; if (result == 0) { count++; break; } } printf("Division result is %d\n", count); return 0; }

You might also like