Asked by
AL MaMun (4 Golds)
Friday, 31 Jul 2020, 04:35 PM
at (Education
Tutorials)
|
|
|
|
A C program to check Palindrome number : #include<stdio.h> int main() { int n, r, rev=0, temp, i; printf("Enter a number\n"); scanf("%d", &n); temp=n; while(n!=0) { rev=rev*10; rev=rev+n%10; n=n/10; } if(temp==rev) printf("%d is a palindrome number", temp); else printf("%d is not a palindrome number", temp); return 0; } |