Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a,b,c,d;
- printf("Enter the number:");
- scanf("%1d %1d %1d %1d", &a, &b, &c, &d);
- printf("%d%d%d%d\n",a,b,c,d);
- printf(" %d%d%d\n",b,c,d);
- printf(" %d%d\n",c,d);
- printf(" %d\n",d);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment