*/
Do you receive the Programmer's Heaven newsletter? If not, why not subscribe?
*/

View SAMPLES\MAX.PAS

Portable ISO Standard Pascal in C, version 3.8

Submitted By: WEBMASTER
Rating: starstarstarstar (Rate It)


(*$c+*)
program example(input,output);
var x,y : integer;
function max(z,w : integer) : integer;
begin
        if z < w then max := w
        else
                max := z
end;
begin
        write('Type: x= '); readln(x);
        write('Type: y= '); readln(y);
        writeln('max = ', max(x, y) : 3, '.')
end.

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.