0

I want help to solve this problm

This is program for palindrome number it is working but in else part i want that if user enter any number if it is not palindrome then what number i have to add or subtract to make it palindrome https://code.sololearn.com/cSAgpp7XEhxv/?ref=app

26th Jan 2021, 7:23 AM
Om Sri
4 Answers
+ 6
🐍🐍🐍🐍🐉 You can concat reverse value in original value or remove first character from reverse value then concat in original value. For example: original - 123 reverse - 321 concat value: 123321 or 12321
26th Jan 2021, 7:33 AM
AÍąJ
AÍąJ - avatar
+ 4
🐍🐍🐍🐍🐉 I said join original value with reverse value to make palindrome. Suppose original value is 123 and reverse value is 321 then you can make palindrome by joining these 2 values. So after joining 123321 will be palindrome number You can see this example https://code.sololearn.com/c3j2M5d2la9x/?ref=app
26th Jan 2021, 9:09 AM
AÍąJ
AÍąJ - avatar
+ 3
Keeps the number of digit as original number, and calculates difference. https://code.sololearn.com/cdoGtC6lei1U/?ref=app
3rd Feb 2021, 9:31 AM
Ipang
0
I Am AJ ! Am not getting
26th Jan 2021, 7:41 AM
Om Sri