Home > Software > Testing > Manual-Testing
Interview Questions   Tutorials   Discussions   Programs   Videos

# Manual-Testing - Write an algorithm to find an palindrome?

295
views
asked mar October 6, 2014 11:35 PM

Write an algorithm to find an palindrome?

answered By shallu   0

# include

int main() { int n, reverse = 0,num; printf("Enter a number to reverse\n"); scanf("%d",&n); num=n; while (n != 0) { reverse = reverse * 10; reverse = reverse + n%10; n = n/10; } printf("Reverse of entered number is = %d\n", reverse); if(reverse== num) {

``````printf("\n The Number is Palindrome \n");
}
else{
printf("\n The Number is not a Palindrome\n ");
``````

} return 0; }

flag

### Join with account you already have

Preview

Online-Classroom Classes
www.writeabc.com

1 person following this question

Question tags

Asked 3 years and 5 months ago ago
Number of Views -295
Number of Answers -1
Last updated
3 years and 2 months ago ago

Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!