Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Enter the number :5
- The next smallest palindrome is : 11
- Do you want to continue (1/0) : 1
- Enter the number :999
- The next smallest palindrome is : 1001
- Do you want to continue (1/0) :1
- Enter the number : 1234
- The next smallest palindrome is : 1331
- Do you want to continue (1/0) :1
- Enter the number : 1221
- The next smallest palindrome is : 1331
- Do you want to continue (1/0) :1
- Enter the number : 12921
- The next smallest palindrome is : 13031
- Do you want to continue (1/0) :1
- Enter the number : 129921
- The next smallest palindrome is : 130031
- Do you want to continue (1/0) : 1
- Enter the number :783322
- The next smallest palindrome is : 783387
- Do you want to continue (1/0) : 1
- Enter the number :125322
- The next smallest palindrome is : 125521
- Do you want to continue (1/0) :1
- Enter the number :713322
- The next smallest palindrome is : 714417
- Do you want to continue (1/0) :1
- Enter the number :1234628
- The next smallest palindrome is : 1235321
- Do you want to continue (1/0) :0
Add Comment
Please, Sign In to add comment