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 is the c value paradox and how is it explained?
What functions are used for dynamic memory allocation in c language?
Describe dynamic data structure in c programming language?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
What is difference between arrays and pointers?
What is difference between && and & in c?
How reliable are floating-point comparisons?
What is the ANSI C Standard?
What are the types of type specifiers?
Do pointers take up memory?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
Whats s or c mean?
Which node is more powerful and can handle local information processing or graphics processing?
how to create duplicate link list using C???
What is modeling?