Skip to content

Conversation

@AdityaArunSharma
Copy link

{
int n;
printf("Enter any number ");
scanf("%d",&n);
int a=n;
int r=0;
while(a!=0)
{
int b=a%10;
r=r*10+b;
a/=10;
}
if(r==n)
printf("It is a palindrone number");
else
printf("It is not a palindrone number");
}

{
    int n;
    printf("Enter any number ");
    scanf("%d",&n);
    int a=n;
    int r=0;
    while(a!=0)
    {
        int b=a%10;
        r=r*10+b;
        a/=10;
    }
    if(r==n)
        printf("It is a palindrone number");
    else
        printf("It is not a palindrone number");
}
@AdityaArunSharma
Copy link
Author

program to check palidrone number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant