Skip to content

Instantly share code, notes, and snippets.

@psykzz
Created September 25, 2012 21:56
Show Gist options
  • Save psykzz/3784717 to your computer and use it in GitHub Desktop.
Save psykzz/3784717 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, const char * argv[])
{
int number, right_digit;
printf("Enter your Number: ");
scanf("%i", &number);
do {
right_digit = number % 10;
printf("%i\n", right_digit);
number /= 10;
} while (number != 0);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment