Display numbers from 0 to X vis versa : <p>i need your help in this puzzle:
i want to take an input from the user as X and display numbers from 0 to X and from X to 0.
the trick is to use only one variable.
how could i solve this in java</p>
