+ 3
Can anyone help me with this C code..
I have written a c program to reverse a number with some constraints I want it in the format like, Input should be like, 2 123 456 And output should be like 321 654 https://code.sololearn.com/cTr1eRMz9pjz/?ref=app https://code.sololearn.com/cTr1eRMz9pjz/?ref=app https://code.sololearn.com/cTr1eRMz9pjz/?ref=app
2 Answers
+ 2
Thanks for helping.
+ 1
these constraints (1 <= N < 10000) given in problems, are only meant to make sure we use proper datatype which can range till that length..
that is the reason these constraints provided. so u can skip the constraint and just focus on the logic
https://code.sololearn.com/ct3cd1cM0ih5/?ref=app