Write a program to accept a number and check whether the sum of it’s digits is palindrome or not?
Answers
Answered by
1
Explanation:
#include<stdio.h>
int main()
{
int n,r,sum=0,temp;
printf("enter the number=");
scanf("%d",&n);
temp=n;
while(n>0)
{
r=n%10;
sum=(sum*10)+r;
n=n/10;
}
if(temp==sum)
printf("palindrome number ");
else
printf("not palindrome");
return 0;
}
Answered by
0
Answer:
It is correct
hope it's helpful for you plz mark me brain list
Similar questions