#include<iostream>
using namespace std;
int main(){
	const int size=5;
	int a1[size]={1,2,3,4,5};
	//求和
	int sum=0;
	for(int i=0;i!=size;++i)
		sum += a1[i];
	cout<<"The summary of the array is "<<sum<<endl;
        //将一个整数各位书放入数组然后反向输出数列
	int num=1234;
	const int s=4;
	int a2[s]={0,0,0,0};
	for(int i=0;num>0;++i){
	    a2[i]=num%10;
	    num/=10;
	}
        for(int i=0;i!=s;++i)
	    cout<<a2[i]<<"  ";
	 cout<<endl;
	return 0;
}
