Euclidian division


No notes were written for this algorithm.

Preview of this algorithm

Icon Variable
Set q to 0
Icon Variable
Ask for a with default 0
Icon Variable
Ask for b with default 1
Icon Structure
While a >= b
Icon Variable
Set q to q+1
Icon Variable
Set a to a-b
Icon Structure
End
Icon Variable
Set r to a
Icon Output
Print variable q
Icon Output
Print variable r