![]() |
digit reverse in C
All my greetings to everyone.
With a lot of respect to all members of this forum ,please i'm struggling since already many days to solve this problem.In fact how can we reverse a number (e.g 12345 to 54321)using only looping without array nor pointer or other advanced codes.Also for a number like 1000 it must be 1 inspites of 0001. thank you for your support Assalam :thinking: :thinking: |
Re: digit reverse in C
Hello!!!!!!!!!!! I do not know that but I am sure pradeep will know.
|
Re: digit reverse in C
Moved to C-C++ forum
|
Re: digit reverse in C
Here i am just giving you an idea. Solve it by making it efficient and accurate.
Code:
int nDigit=1,result=0; |
| All times are GMT +5.5. The time now is 13:18. |