Answer Posted / shweta
when we do reverse any no then we find a new no and this
no is equal to our privous no,which is called palindrom no.
by program
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int n,m,sum=0,l;
printf("enter any no");
scanf("%d",&n);
while(n>0)
{
m=n%10;
sum=sum*10+m;
n=n\10;
}
if(n==l)
{
printf("no is palindrom");
}
else
{
printf("no is not palindrom");
}
getch();
}
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
Explain indirection?
How do you list a file’s date and time?
Explain what is the difference between the expression '++a' and 'a++'?
What is .obj file in c?
Write a program to print "hello world" without using a semicolon?
int i=10; printf("%d %d %d", i, i=20, i);
What is sizeof in c?
write a program to find out prime number using sieve case?
diff between exptected result and requirement?
Compare interpreters and compilers.
What is %g in c?
What are identifiers and keywords in c?
Why c is called free form language?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What are different types of variables in c?