pranjal1805

Untitled

Mar 30th, 2021
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {  
  4.     int a,b,c,d;
  5.     printf("Enter the number:");
  6.     scanf("%1d %1d %1d %1d", &a, &b, &c, &d);
  7.     printf("%d%d%d%d\n",a,b,c,d);
  8.     printf(" %d%d%d\n",b,c,d);
  9.     printf("  %d%d\n",c,d);
  10.     printf("   %d\n",d);
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment