Question:C program to find whether a number is palindrome or not 

Answer 
#include<stdio.h>
int main(){
    int num,r,sum=0,temp;

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

    temp=num;
    while(num){
         r=num%10;
         num=num/10;
         sum=sum*10+r;
    }
    if(temp==sum)
         printf("%d is a palindrome",temp);
    else
         printf("%d is not a palindrome",temp);

    return 0;
}
Sample output: Enter a number: 131 131 is a palindrome 

+ ExplanationNot Moderated
+ Report
Total Preview: 526
C program to find whether a number is palindrome or not
Copyright © 2024. Powered by Intellect Software Ltd