Answer Posted / a.prathyusha
#include<stdio.h>
void main()
{
int n,s=0,r,n1;
printf("enter any number:");
scanf("%d",&n);
n1=n;
while(n>0)
{
r=n%10;
s=(s*10)+r;
n=n/10;
}
if(s==n1)
printf("palindrom");
else
printf("not palindrom");
}
Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Are pointers integer?
Explain what is meant by 'bit masking'?
Is linux written in c?
Why enum is used in c?
Is c weakly typed?
How can I get back to the interactive keyboard if stdin is redirected?
Do you know the purpose of 'register' keyword?
Compare interpreters and compilers.
Is javascript written in c?
What is difference between static and global variable in c?
What is C language ?
How are Structure passing and returning implemented by the complier?
What is the difference between Printf(..) and sprint(...) ?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
How is a null pointer different from a dangling pointer?