+ 1

Creating a Palindrome number checking functions using sscanf.

I was creating a function which checks if a number is palindrome. I thought of 2 methods, one involving maths and other using sscanf. Can anyone help me with how should i Try to create it with sscanf?( I have included something I was trying before i got stumped., but i dont really need it to conform to this. Entirely New and better ways to integrate sscanf would be appreciated) https://code.sololearn.com/czEjFj9mjOc6

19th Dec 2021, 12:26 PM
Ishaan Oberoi
Ishaan Oberoi - avatar
4 Answers
+ 2
Martin Taylor Thanks! That's a great solution
19th Dec 2021, 4:30 PM
Ishaan Oberoi
Ishaan Oberoi - avatar
0
Martin Taylor here's another one I tried (haven't made it completely for odd and higher than 4 digit ) but couldn't make it universal for every number, your method saves the trouble
19th Dec 2021, 4:32 PM
Ishaan Oberoi
Ishaan Oberoi - avatar
19th Dec 2021, 4:33 PM
Ishaan Oberoi
Ishaan Oberoi - avatar