1998-10-15から1日間の記事一覧

読み込んだ3つの整数値の最大値を返す関数

明解C言語 入門編 > 6. 関数 > 読み込んだ3つの整数値の最大値を返す関数 Delphi program Project1;{$APPTYPE CONSOLE}uses SysUtils;function max3(x: Integer; y: Integer; z: Integer): Integer; begin result := x; if y > result then result := y; i…