No, cause the remainder might be bigger than divisor.
because the divisor wont work when you multiply it??
If the remainder is greater than the divisor then you can divide it once more and get one more whole number and then have less remainders.
int dividend,divisor,remainder; int division(int p,int q){ int quotient=1; /*if divisor and diviend are equal then quotient=1*/ if(p==q){ remainder=0; return 1; } /*if dividend is smaller than divisor then remainder=dividend*/ if(p<q){ remainder=p; return 0; } /*shift left till divisor > dividend*/ while(p>=q){ q<<=1; quotient<<=1; } /*shift right for one time so that divisor become smaller than dividend*/ q>>=1; quotient>>=1; /*again call division recurcively*/ quotient+=division(p-q,divisor); return quotient; } int main(){ cout<<"\nEnter dividend:"; cin>>dividend; cout<<"\nEnter divisor:"; cin>>divisor; cout<<"\nQuotient:"<<division(dividend,divisor); cout<<"\nRemainder:"<<remainder; //system("pause"); return 0; }
An Elephant is larger than a mouse
The remainder can be greater than the divisor when the dividend is significantly larger than the divisor. In division, the remainder is the amount that is left over after dividing the dividend by the divisor. If the dividend is much larger than the divisor, it is likely that the remainder will also be larger than the divisor.
No.
Then divide the remainder again by the divisor until you get a remainder smaller than your divisor or an remainder equal to zero. The remainder in a division question should never be larger than the "divisor", but the remainder often is larger than the "answer" (quotient). For example, if 435 is divided by 63, the quotient is 22 and the remainder is 57.
Because if the remainder is bigger than the divisor, the quotient can be increased and that will reduce the remainder. You can keep doing as long as the remainder is larger than the divisor. You stop only when it becomes smaller.
No, cause the remainder might be bigger than divisor.
The remainder is less than the divisor because if the remainder was greater than the divisor, you have the wrong quotient. In other words, you should increase your quotient until your remainder is less than your divisor!
If the remained was bigger than the divisor than the divisor could still be taken out of the remainder
Because if the remainder is greater, then you could "fit" another divisor value into it. if they are equal, then you can divide it easily. Thus, the remainder is always lower than the divisor.
It must be less else you have not divided properly; you could divide again 1 or more times!If the remainder is equal to the divisor (or equal to a multiple of the divisor) then you could divide again exactly without remainder. If the remainder is greater but not a multiple of the divisor you could divide again resulting in another remainder.E.g. Consider 9/2. This is 4 remainder 1. Let's say our answer was 3 remainder 3; as our remainder "3" is greater than the divisor "2" we can divide again so we have not carried out our original division correctly!
If the remainder were greater than the divisor, you'd be able to take another divisor out of it.
Because if the remainder is greater, then you could "fit" another divisor value into it. if they are equal, then you can divide it easily. Thus, the remainder is always lower than the divisor.
A remainder can be any non-negative number that is less than the divisor. If the remainder is bigger than the divisor, the divisor can go into it another one (or more) times until the remainder is brought into that range.