#include<stdio.h> int main() { int n; scanf("%d",&n); int k=1000; int t; while(k>0) { t=n/k; n=n%k; k=k/10; printf("%c ",t+48); } printf("\n"); return 0; }
Double click to view unformatted code.