#include<stdio.h> void hanshu(int m){ int x,y,z,q; x=m/1000; y=m%1000/100; z=m%1000%100/10; q=m%1000%100%10; printf("%d %d %d %d",x,y,z,q); } void main(){ int m; scanf("%d",&m); hanshu(m); }
Double click to view unformatted code.