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
What are types of preprocessor in c?
What kind of structure is a house?
What is use of #include in c?
What are the loops in c?
What is the difference between if else and switchstatement
What is the function of volatile in c language?
The file stdio.h, what does it contain?
Why c is called object oriented language?
ATM machine and railway reservation class/object diagram
Define circular linked list.
What is a void pointer in c?
Explain how can I write functions that take a variable number of arguments?
Are there constructors in c?
Where are some collections of useful code fragments and examples?
How can I do serial ("comm") port I/O?