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

配列の各要素に先頭から順に 1,2,3,4,5 を代入して表示 (for文)

明解C言語 入門編 > 5. 配列 > 配列の各要素に先頭から順に 1,2,3,4,5 を代入して表示 (for文) Delphi program Project1;{$APPTYPE CONSOLE}uses SysUtils; var i: Integer; score: array[1..5] of Integer; begin for i := 1 to 5 do score[i] :=…