Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int y,i,num;
- printf("Enter the number of integers you need:");
- scanf(" %d", &y);
- int r1[y];
- printf("Enter a number:");
- scanf(" %d", &num);
- for( i=1; i<=y; i++){
- r1[i] = num%10;
- num=num/10;
- printf("%d\n", r1[i]);
- }
- printf("\n");
- return 0;
- }
Add Comment
Please, Sign In to add comment