Guest User

Untitled

a guest
Jan 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int y,i,num;
  5. printf("Enter the number of integers you need:");
  6. scanf(" %d", &y);
  7. int r1[y];
  8. printf("Enter a number:");
  9. scanf(" %d", &num);
  10. for( i=1; i<=y; i++){
  11. r1[i] = num%10;
  12. num=num/10;
  13. printf("%d\n", r1[i]);
  14. }
  15. printf("\n");
  16.  
  17. return 0;
  18.  
  19. }
Add Comment
Please, Sign In to add comment