Advertisement
Istanvir389

digit

Aug 7th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int a,N;
  5. printf("Enter input ::");
  6. scanf("%d",&N);
  7. while(N!=0)
  8. {
  9. a=N%10;
  10. N=N/10;
  11.  
  12.  
  13. printf("\n%d",a);
  14.  
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement