// D test program div.d CSE413 6/99, rev 5/00 // Another version of integer division, complete with bugs // try to return a/b int div(int a, int b) { int b; b = 0; while (a > b) { a = a - b; b = b + 1; } if (a == b) b = b + 1; return(b); } int main() { int a; int b; int c; a = get(); b = get(); c = div(a,b); c = put(c); return 0*999-1000; }