//*Copyright (c) 2014, 烟台大学计算机学院
//* All rights reserved.
//* 文件名称:test.cpp
//* 作 者: 徐洪祥
//* 完成日期:2014年 11 月 17日
//* 版 本 号:v1.0
//*
//* 问题描述:分离正整数中的各位数
//* 输入描述:
//* 程序输出:
#include <iostream>
using namespace std;
void sparate(int x);
int main()
{
int a;
while(cin>>a)
{
sparate(a);
cout<<endl;
}
return 0;
}
void sparate(int x)
{
int b;
while(x>0)
{
b=x%10;
x=x/10;
cout<<b<<' ';
}
}