Computer Science, asked by subhasishbehera083, 2 months ago

Write a program to accept a number and check whether the sum of it’s digits is palindrome or not?

Answers

Answered by mahavir30082000
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 shreya257493
0

Answer:

It is correct

hope it's helpful for you plz mark me brain list

Similar questions