next up previous contents index
Next: Ofs Up: Functions and Procedures Previous: New

Odd

   

Declaration:

Function Odd (X : longint) : Boolean;

Description:

Odd returns True if X is odd, or False otherwise.

Errors:

None.

See also:

Abs, Ord

Example
Program Example43;

{ Program to demonstrate the Odd function. }

begin
  If Odd(1) Then 
    Writeln ('Everything OK with 1 !');
  If Not Odd(2) Then 
    Writeln ('Everything OK with 2 !'); 
end.



Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998