#include<stdio.h> main() { int n,i,o,tw,t,f; scanf("%d",&n); f=n%10; t=(n/10)%10; tw=(n/100)%10; o=(n/1000)%10; printf("%d %d %d %d",o,tw,t,f); }
Double click to view unformatted code.