1998-11-04から1日間の記事一覧

最大公約数を求める (再帰)

明解C言語 入門編 > 8. いろいろなプログラムを作ってみよう > 最大公約数を求める (再帰) Delphi program Project1;{$APPTYPE CONSOLE}uses SysUtils;function gcdf(vx:Integer; vy:Integer):Integer; begin if vy = 0 then result := vx else result := g…