Skip to content

Instantly share code, notes, and snippets.

@FottyM
Created January 13, 2018 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FottyM/69639b162e682d7c795bd865cfd765d5 to your computer and use it in GitHub Desktop.
Save FottyM/69639b162e682d7c795bd865cfd765d5 to your computer and use it in GitHub Desktop.
#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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment