Relative Content

Daily Archives: May 17, 2016

2.2 型

型と型変換 型 int — 整数 double — 浮動小数点数 平均点を求めるプログラム #include <stdio.h> int main(int argc, const char * argv[]) { // insert code here… int score[5]; // 5人の点数を入れる配列 int sum; // 合計点 // 各点数を入れる score[0] = 77; score[1] = 80; score[2] = 65; score[3] = 60; score[4] = 70; // 各点数を全て足して合計点を求める sum = score[0] + score[1] […]