配列---タスク1
897 ワード
01./*
02.* :
03.* Copyright (c) 2011,
04.* All rights reserved.
05.* :test.cpp
06.* :
07.* :201 3 11 30
08.* :v1.0
09.* :
10.* :
11.* :
12.* :
13.* :
14.* :
15.*/
#include <iostream>
using namespace std;
int main()
{
int a[20]={1,2,3,4,5,6,7,8,9,10},i,n;
cout<<" "<<endl;
for(i=10;i<20;i++)
{
cin>>a[i];
}
for(n=0;n<20;n++)
{
cout<<a[n]<<" ";
if((n+1)%5==0)
cout<<endl;
}
return 0;
}