Hello, my name is kerry and i just sign up .Well, my question is how do reverse a number input by user using recersive function.Thanks for the help.

I have a sequence of 5 numbers. I want to write it in reverse order. Could you please help me that what will be the algorithm?

I have a sequence of 5 numbers. I want to write it in reverse order. Could you please help me that what will be the algorithm?

This is different from the question dealt in this thread so start a new one...

Think about array indices. To write them from beginning to end, you would start at 0 and go to arrayLength - 1. How might you do the opposite?

death_oclock has already solved your problem.But what is your objective behind reversing of the numbers??? We could help you better if you could state that...

is it your assignment? i've already solved that problem.. it's a quiz last january.. hmm.. use only loop.

I won't give you the code =))

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.