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 PostDepends on how you want to do with the value afterward.
If you want to keep the value for later use, you could keep it as int and do as harinath_2007 suggested.
If you just want to display the result only, you can convert the int to String …
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.