how to print this

1234 is an integer i want to print it as 1 2 3 4..
i know how to print it as 4 3 2 1..
You can put the 4 3 2 1 in an array and then print backwards. int will have at most 10 digits, assuming 32 bits. You could also use recursion instead of an array.
Topic archived. No new replies allowed.