Coding Now – Best AI & Full Stack Courses in Delhi NCR | 100% Placement
Limited Offer: Get 50% OFF on AI & Full Stack Courses
📞 Call Now: +91 9667708830
Home Community WAC to make a palindrome checker.

WAC to make a palindrome checker.

SOHAM MUDGIL  •  Jul 17, 2026  •  5 views
0

1 Answers

Soham
Jul 17, 2026
#include <stdio.h>

int main()
{
int num;
int rev = 0;
int original;

printf("Enter Number: ");
scanf("%d", &num);

original = num;

while (num > 0)
{
int rem = num % 10;
num = num / 10;
rev = rev * 10 + rem;
}

if (original == rev)
{
printf("Number is a palindrome");
}
else
{
printf("Number is not a palindrome");
}

return 0;
}

Your Answer

Will not be displayed publicly
💬 Talk to Advisor
1
WhatsApp

Latest from Our Blog

Insights on AI, Data Science, Full Stack & Career

View All Articles →