program to find a pallindromic no.
Answers
Answered by
0
#include <stdio.h> int main() { int n, reverse = 0, t; printf("Enter a number to check if it is a palindrome or not\n"); scanf("%d", &n); t = n; while (t != 0) { reverse = reverse * 10; reverse = reverse + t%10; t = t/10; } if (n == reverse) printf("%d is a palindrome number.\n", n); else printf("%d isn't a palindrome number.\n", n); return 0; }
Answered by
1
hope it helps you
plz mark it as brainliest
plz mark it as brainliest
Attachments:
Similar questions