Question: Write a function, reverseDigit, that takes an integer as a parameter and returns the number with its digits reversed. For example: the value of reverseDigit

Write a function, reverseDigit, that takes an integer as a parameter and returns the number with its digits reversed.
For example:
the value of reverseDigit(12345) is 54821;
the value of reverseDigit(5600) is 65;
the value of reverseDigit(7008) is 8007 ;
and the value of reverseDigit(-532) is -235.
Task wor: Program contains required function and outputs correctly
 Write a function, reverseDigit, that takes an integer as a parameter

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!