1998-05-30から1日間の記事一覧

5人の点数を読み込んで合計点と平均点を表示

C

明解C言語 入門編 > 5. 配列 > 5人の点数を読み込んで合計点と平均点を表示 C #include <stdio.h> int main(int argc, char* argv[]) { int score1; int score2; int score3; int score4; int score5; int sum = 0; puts("点数を入力してください。"); printf("1番</stdio.h>…