Not asking for code, but I'm wondering if anyone can give me some advice and pointers for writing a code that reverses an inputted int, without using the string reverse.
NexG
0
Newbie Poster
Recommended Answers
Jump to PostHow do you get the value to be reversed?
As a String?
Or as an integer?
Jump to PostIf the digits were written on pieces of paper and you wanted to reverse them, how would you do it?
Take the input's right most digit and move it to the output area, shifting the digits that were already there in the output area one position to the left and …
All 7 Replies
NormR1
563
Posting Sage
Team Colleague
NexG
0
Newbie Poster
NormR1
563
Posting Sage
Team Colleague
NexG
0
Newbie Poster
harinath_2007
56
Posting Whiz
Taywin
312
Posting Virtuoso
NexG
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.