You have two mistakes in your code.
1) &&(x>0): why should x be greater than 0? Even if negative integers weren't in the input, 0 itself is a valid integer of 1 or 2 digits. Remove it from the condition.
2) You need to print a newline after each number -> printf("%d\n",x);
Changing these two things you will get AC.
gl hf
- Hodobox