Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main (int argc, const char * argv[]) {
- int n = 1234;
- for(int x = n; x > 0; x /= 10) {
- int cifra = x % 10;
- printf("%d ", cifra);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement