Created
July 5, 2010 14:10
-
-
Save Mistat/464383 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 課題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