A r t i c l e s
Navigation

Note: This Wiki is
outdated, personal views
may have changed.
L505 A.I. bot is dead
long live THX 1138

M a i n P a g e

D i r e c t o r y

MOD And DIV operators


{ find out whether complete division or partial occurred }
function DivCheck(divby: integer; into: integer; var leftover: integer): integer;
begin
  result:= into div divby;
  leftover:= into mod divby ;
end;

var
  LeftOver: integer;
begin
  writeln('Divides completely: ', divcheck(6, 10, LeftOver), ' times.');
  writeln('Leftover: ', LeftOver);
  readln;
end.



About
Note: This Wiki is outdated, personal views may have changed.

This wiki contains info on life, health, humans, nature, programming, database, fads, paradigms, poems, principles, theories.

Articles may contain statements which some may find helpful and encouraging, or even discouraging.

Beware, I believe in the Grand Justice system.
_ _ _