{

int remainder = dividend;

int quotient = 0;

while (remainder >= divisor)

{

remainder -= divisor;

quotient++;

}

return new int[] { quotient, remainder };

}

[b] i am trying to do a divison program..

i should not use " / or %"

i should only use a while loop or a for loop.

i wanted it to be like this,

*output of program: any number / any number = quotient*

input dividend: dividend

input divisor: divisor

quotient: quotient

remainder: if there is a remainder

*[i]*

This post has been edited by **dianenacario**: 09 August 2007 - 12:27 AM