Computer Science, asked by khushi9d11, 1 year ago

program to enter a number and check whether it is palindrome or not

Answers

Answered by siddhartharao77
3
#include<stdio.h>

int main()
{
    int num,a,sum=0,b;

  printf("Enter a number: ");

    scanf("%d",&num); 

   temp=num;

    while(num)
{

        a=num%10;

         num=num/10;

        sum=sum*10+a;

    }

   if(b==sum)

         printf("%d is a palindrome",b);

   else


        printf("%d is not a palindrome",b);
 

    return 0;

}
Answered by Abhijeetroy
0

Answer:

hey dear ........ .........

Similar questions