Skip to content

Instantly share code, notes, and snippets.

@Mistat
Created July 5, 2010 14:10
Show Gist options
  • Select an option

  • Save Mistat/464383 to your computer and use it in GitHub Desktop.

Select an option

Save Mistat/464383 to your computer and use it in GitHub Desktop.
/**
* 課題1
*
* 5つの配列を格納する配列aに5つの数字{10,20,30,40,50}を格納(初期設定値)し、
* 格納させた値をfor文を使って表示させるプログラムを作成
*/
#include<stdio.h>
void main()
{
int a[]={10,20,30,40,50};
int i;
for(i = 0 ; i < 5; i++) printf("%d\n", a[i]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment