How can i write a program that accepts an integer stores it in a variable1.The program then reverses the digits in the integer and stores them in another variable2,then outputs both integers?
Example:
you enter 387 the value is reversed to 783.
NOTE:The new value MUST be stored in variable2 before it is output.