I got this assignment and I'm stuck. I have to write a function that takes an integer value and returns the number with its digits reversed. For example, given the number 7631, the function should return 1367. Can someone help?
:confused:
DemonLady 0 Newbie Poster
Dave Sinkula 2,398 long time no c Team Colleague
swarren74 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
swarren74 0 Newbie Poster
SirJames 10 Newbie Poster
TkTkorrovi 69 Junior Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
TkTkorrovi 69 Junior Poster
vemanamar 0 Newbie Poster
TkTkorrovi 69 Junior Poster
TkTkorrovi 69 Junior Poster
c0ld sn1ff3r -4 Newbie Poster
cutedipti 0 Light Poster
nadim2010 -1 Newbie Poster
jonsca commented: Don't bump old threads -1
nbaztec 45 Posting Pro in Training
Xufyan -4 Posting Whiz
andro23 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
andro23 0 Newbie Poster
ankithajain 0 Newbie Poster
Ajini 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.