CheckPalindrome | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 4

CheckPalindrome

Hey guys I need help I want to write a program in c to Check Palindrome like this: 1- input:12321 output: Yes 2- input:3245 output: No 3- input:34743 output: Yes

10th Apr 2021, 7:00 AM
reza
reza - avatar
7 Answers
+ 2
You can have the number as a string and put a pointer at the beginning and another at the end of the string and check if it is the same, if it is the same increase the pointer at the beginning and decrease the pointer at the end
10th Apr 2021, 1:35 PM
Alejandro Medero
Alejandro Medero - avatar
+ 1
reza Well done 👍. Then write program.
10th Apr 2021, 7:40 AM
A͢J
A͢J - avatar
+ 1
reza But we need your attempts.
10th Apr 2021, 7:45 AM
A͢J
A͢J - avatar
0
:)))))))))) but I need help :))
10th Apr 2021, 7:43 AM
reza
reza - avatar
0
Yeah you are absolutely right but I don't have any Idea :( I want some ideas to start and write this program
10th Apr 2021, 7:49 AM
reza
reza - avatar
0
Thanks abol and Alejandro Medero Your answer was really helpful Thanks
10th Apr 2021, 1:41 PM
reza
reza - avatar
10th Apr 2021, 2:16 PM
reza
reza - avatar